Carrot reference
Operators

[ ](array)

Access a given expression as an array, and return a defined position on that array.

Syntax

expression[#]

  • expression - a value that can be referenced as a list or object.
  • # - the ordinal index to target within the array.

Sample usage

grants[0].shares accesses grants as an array to get the number of shares of the first grant issued.

See also