Array Concatenate
This node merges two arrays into one.
The Array Concatenate node joins two collections sequentially.
The Array Concatenate node takes two input arrays (Array 1 and Array 2) and produces a single new array containing all items from the first, followed by all items from the second.
Inputs
Input
| Data | Description |
|---|---|
| Array 1 | The first array (start of the result). |
| Array 2 | The second array (end of the result). |
Actions
| Signal | Description |
|---|---|
| Do | Triggers the concatenation. |
Outputs
Data
| Data | Description |
|---|---|
| Concatenated Array | The combined array. |
Signals
| Signal | Description |
|---|---|
| Done | Triggered when the operation is complete. |
Usage
Use this to combine datasets, such as merging "Featured Items" with "All Items", or combining results from two different API calls.
Example Use Cases
- Infinite Scroll: Append a "New Page" array to the "Current List" array. (Note: This node creates a new array, so for infinite scroll, you might often use Insert loop instead, but this works for simple merges).
- Headers: Add a static "Select an option..." item (Array 1) to a dynamic list of options (Array 2) for a dropdown.
Detailed Behavior
- Shallow Copy: The items themselves are not cloned; the new array contains references to the same objects.
- Order:
Array 1items come first, thenArray 2.
Troubleshooting
- Null Inputs: If an input is null/undefined, it is treated as an empty array.