g.js — graphical objects for JavaScript

lastlast

Take the last item in the list.

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

Parameters

  • l: The list of items.

See Also

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