---
title: INSERT
url: https://www.tines.com/docs/formulas/functions/insert/
kind: formula-function
---

*[tines.com](https://www.tines.com/llms.txt) › [Docs](https://www.tines.com/llms.txt) › [Formulas](https://www.tines.com/llm/docs/formulas.md) › [Functions](https://www.tines.com/llm/docs/formulas/functions.md)*

# INSERT

*[View on tines.com](https://www.tines.com/docs/formulas/functions/insert/)*

Inserts an item into an array at a given index.

**Categories:** Arrays

## Syntax

```
INSERT(array, index, item)
```

## Examples

### Example 1

Formula:

```
INSERT(["a", "b", "c"], 1, "x")
```

Output:

```json
[
  "a",
  "x",
  "b",
  "c"
]
```

### Example 2: Accepts negative indexes.

Formula:

```
INSERT(["a", "b", "c"], -2, "x")
```

Output:

```json
[
  "a",
  "b",
  "x",
  "c"
]
```
