Array
Collection operations — length, access, map, filter, sort, group, zip, and more.
Array nodes operate on ordered collections of values. They cover the full range of collection operations — accessing elements, transforming collections, searching, grouping, and building new arrays.
All Array nodes are pure (blue header, no execution pins). For iterating over arrays with side effects, use the For Each flow control node instead.
Array Length
Get the number of elements in an array.
| Pin | Direction | Type | Description |
|---|---|---|---|
| Array | Input | Array | The array to measure |
| Length | Output | Integer | Number of elements |
Pure. Use Array Length to check if a collection is empty or to determine loop bounds.
Array Get
Get an element by index (zero-based).
| Pin | Direction | Type | Description |
|---|---|---|---|
| Array | Input | Array | The source array |
| Index | Input | Integer | Position to read (default: 0) |
| Item | Output | Any | The element at the specified index |
Pure. Use Array Get to access specific positions — the first result, a known offset, or a computed index.
Array First
Get the first element of an array.
| Pin | Direction | Type | Description |
|---|---|---|---|
| Array | Input | Array | The source array |
| Item | Output | Any | The first element |
Pure. Use Array First to get the top result from a sorted or filtered collection.
Array Last
Get the last element of an array.
| Pin | Direction | Type | Description |
|---|---|---|---|
| Array | Input | Array | The source array |
| Item | Output | Any | The last element |
Pure. Use Array Last to get the most recent entry in a chronological list.
Array Push
Append an item to the end of an array. Returns a new array.
| Pin | Direction | Type | Description |
|---|---|---|---|
| Array | Input | Array | The source array |
| Item | Input | Any | The item to append |
| Result | Output | Array | New array with the item added |
Pure. Use Array Push to build arrays incrementally — collecting results, adding to a list.
Array Concat
Combine two arrays into one.
| Pin | Direction | Type | Description |
|---|---|---|---|
| A | Input | Array | First array |
| B | Input | Array | Second array |
| Result | Output | Array | Combined array (A followed by B) |
Pure. Use Array Concat to merge results from multiple sources into a single collection.
Array Slice
Extract a sub-array by start and end indices.
| Pin | Direction | Type | Description |
|---|---|---|---|
| Array | Input | Array | The source array |
| Start | Input | Integer | Starting index (default: 0) |
| End | Input | Integer | Ending index (exclusive) |
| Result | Output | Array | The extracted sub-array |
Pure. Use Array Slice to take the first N elements, skip elements, or extract a window.
Array Contains
Check if an item exists in the array.
| Pin | Direction | Type | Description |
|---|---|---|---|
| Array | Input | Array | The array to search |
| Item | Input | Any | The value to look for |
| Result | Output | Boolean | True if the item is found |
Pure. Use Array Contains to check membership — is an IP in the blocklist, is a user in the allowed group.
Array Index Of
Find the index of an item in the array. Returns -1 if not found.
| Pin | Direction | Type | Description |
|---|---|---|---|
| Array | Input | Array | The array to search |
| Item | Input | Any | The value to find |
| Index | Output | Integer | Position of the item, or -1 |
Pure. Use Array Index Of to locate a specific element for subsequent operations.
Array Reverse
Reverse the order of elements in an array.
| Pin | Direction | Type | Description |
|---|---|---|---|
| Array | Input | Array | The source array |
| Result | Output | Array | Array with reversed order |
Pure. Use Array Reverse to flip chronological order, process items from newest to oldest.
Array Sort
Sort an array by value or by a key within each element.
| Pin | Direction | Type | Description |
|---|---|---|---|
| Array | Input | Array | The array to sort |
| Key | Input | String | Property name to sort by (default: empty for direct value sort) |
| Direction | Input | String | "asc" or "desc" (default: "asc") |
| Result | Output | Array | Sorted array |
Pure. Use Array Sort to rank results — sort alerts by severity, users by name, or events by timestamp.
Array Filter
Keep only elements that match an expression.
| Pin | Direction | Type | Description |
|---|---|---|---|
| Array | Input | Array | The array to filter |
| Result | Output | Array | Elements where the expression evaluates to true |
Properties:
- Expression — the filter expression using
itemas the current element (default:item != null).
Pure. Use Array Filter to narrow down results — keep only high-severity alerts, active users, or non-null values.
Array Map
Transform each element using an expression.
| Pin | Direction | Type | Description |
|---|---|---|---|
| Array | Input | Array | The source array |
| Result | Output | Array | Array of transformed elements |
Properties:
- Expression — the transformation using
itemas the current element (default:item).
Pure. Use Array Map to extract a single field from each object, format values, or reshape data.
Array Reduce
Fold an array down to a single value using an accumulator expression.
| Pin | Direction | Type | Description |
|---|---|---|---|
| Array | Input | Array | The array to reduce |
| Initial Value | Input | Any | Starting value for the accumulator |
| Result | Output | Any | Final accumulated value |
Properties:
- Expression — the reduction using
accumulatoranditem(default:accumulator + item).
Pure. Use Array Reduce to sum values, build concatenated strings, or merge objects from a collection.
Array Find
Find the first element that matches an expression.
| Pin | Direction | Type | Description |
|---|---|---|---|
| Array | Input | Array | The array to search |
| Item | Output | Any | The first matching element, or null |
Properties:
- Expression — the search condition using
item(default:item != null).
Pure. Use Array Find to locate a specific entry — the alert with a matching ID, the first failed check.
Array Find Index
Find the index of the first element that matches an expression.
| Pin | Direction | Type | Description |
|---|---|---|---|
| Array | Input | Array | The array to search |
| Index | Output | Integer | Position of the first match, or -1 |
Properties:
- Expression — the search condition using
item(default:item != null).
Pure. Use Array Find Index when you need the position rather than the element itself.
Array Every
Check if all elements in an array match an expression.
| Pin | Direction | Type | Description |
|---|---|---|---|
| Array | Input | Array | The array to check |
| Result | Output | Boolean | True if every element matches |
Properties:
- Expression — the condition to test using
item(default:item != null).
Pure. Use Array Every to validate that all entries meet a requirement — all checks passed, all users confirmed.
Array Some
Check if any element in an array matches an expression.
| Pin | Direction | Type | Description |
|---|---|---|---|
| Array | Input | Array | The array to check |
| Result | Output | Boolean | True if at least one element matches |
Properties:
- Expression — the condition to test using
item(default:item != null).
Pure. Use Array Some to check for the presence of a condition — any alert is critical, any IP is blocklisted.
Array Distinct
Remove duplicate elements from an array.
| Pin | Direction | Type | Description |
|---|---|---|---|
| Array | Input | Array | The array to deduplicate |
| Result | Output | Array | Array with duplicates removed |
Pure. Use Array Distinct to clean up collections — unique IP addresses, deduplicated user lists.
Array Flatten
Flatten nested arrays to a specified depth.
| Pin | Direction | Type | Description |
|---|---|---|---|
| Array | Input | Array | The nested array |
| Depth | Input | Integer | Flattening depth (default: 1) |
| Result | Output | Array | Flattened array |
Pure. Use Array Flatten to merge nested results into a single list — combining paginated API responses.
Array Group By
Group array elements into an object by a shared key value.
| Pin | Direction | Type | Description |
|---|---|---|---|
| Array | Input | Array | The array to group |
| Key | Input | String | Property name to group by |
| Groups | Output | Object | Object where each key maps to an array of matching elements |
Pure. Use Array Group By to organize data — group alerts by severity, events by source, or users by role.
Array Zip
Pair elements from two arrays into an array of two-element arrays.
| Pin | Direction | Type | Description |
|---|---|---|---|
| A | Input | Array | First array |
| B | Input | Array | Second array |
| Result | Output | Array | Array of [A[i], B[i]] pairs |
Pure. Use Array Zip to combine parallel data — pairing IP addresses with their reputation scores.
Make Array
Create an array from individual element inputs.
| Pin | Direction | Type | Description |
|---|---|---|---|
| Item 0 | Input | Any | First element |
| Item 1 | Input | Any | Second element |
| Item 2 | Input | Any | Third element |
| Array | Output | Array | Array of the provided elements |
Pure. Use Make Array to construct small arrays from separate values without writing JSON.
Related categories
- Object / Map — work with individual objects that arrays contain
- Flow Control — iterate over arrays with For Each, For Each Parallel, Throttle
- String — join arrays into strings or split strings into arrays