g.js — graphical objects for JavaScript

firstfirst

Take the first item in the list.

g.first([1, 2, 3])

Parameters

  • l: The list of items.

See Also

  • get: Take an item in the list.
  • second: Take the second item in the list.
  • last: Take the last item in the list.
  • rest: Take all but the first item in the list.