- Applies to one level of nested arrays.
- Does not accept arrays that are already flat.
Syntax
Parameters
Parameter | Description | Supported input types |
---|---|---|
<array> | The array of arrays to be flattened | Any ARRAY of ARRAY types |
Return Type
ARRAY
of the same type as the input array
Example
The following example flattens multiple arrays of level IDs:[ [ 1, 2 ], [ 2, 3 ], [ 3, 4 ] ]