g.js — graphical objects for JavaScript

getget

Take an item in the list at a certain index.

var l = [11, 22, 33];
g.get(l, 2);

Indices start at zero.

Parameters

  • l: The list of items.
  • index: The index of the item.

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.
  • last: Take the last item in the list.
  • rest: Take all but the first item in the list.