# Array concat

Concatenate two arrays. Array concat lives in the **Array** category of the `fx` menu.

## Parameters

| Parameter | Type   | Required | Default | Description                                            |
| --------- | ------ | -------- | ------- | ------------------------------------------------------ |
| Input     | string | yes      | —       | Value to transform. Previous step output or a literal. |
| Array 2   | string | yes      | —       | Second array to concatenate                            |

`Input` is the primary value (previous step output or a literal).

## Returned value

| Type     | Description                                |
| -------- | ------------------------------------------ |
| `string` | Result of the Array concat transformation. |

## Limitations

- Array arguments must be valid JSON arrays. Invalid JSON or non-array values raise an error.

## Example

<details>
<summary>Concatenate two arrays</summary>

Merge two JSON arrays into one.

1. Set **Input** to the first array. Paste:

   ```text title="Input"
   ["a","b"]
   ```

2. Set **Array 2** to the second array. Paste:

   ```text title="Array 2"
   ["c"]
   ```

3. Confirm **Output value** is `["a","b","c"]`.

</details>
