> ## 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

> Obtenir un élément d'un tableau par index

## Présentation

La transformation `array-get` récupère un élément d'un tableau par son index.

## Syntaxe

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

## Paramètres

| Paramètre  | Type   | Requis | Par défaut | Description                                 |
| ---------- | ------ | ------ | ---------- | ------------------------------------------- |
| `variable` | array  | Oui    | -          | Le tableau dans lequel récupérer un élément |
| `index`    | number | Non    | `0`        | L'index de l'élément à récupérer            |

## Exemples

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