---
title: [ ](array)
slug: array
docTags: 
createdAt: 2021-09-14T17:53:02.000Z
---

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

- [. (dot)](docId\:t8HBpyTpsANh8YfiZ4YJf)&#x20;
- [ç](docId\:mJPHsJn60Dsm44OO2welJ)&#x20;
- [?: (elvis)](docId\:X-HM1Bldw8aWd8-byRlZV)&#x20;

