> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reelevant.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Array Get

> Get element from array by index

## Overview

The `array-get` transformation retrieves an element from an array by its index.

## Syntax

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
array-get(<variable>, index=0)
```

## Parameters

| Parameter  | Type   | Required | Default | Description                          |
| ---------- | ------ | -------- | ------- | ------------------------------------ |
| `variable` | array  | Yes      | -       | The array to get element from        |
| `index`    | number | No       | `0`     | The index of the element to retrieve |

## Examples

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
array-get(<variable>, index=0)
array-get(<variable>, 2)
```
