$$flat
Flatten an array of arrays (non array elements will remain).
note
All null
elements are removed from result
Usage​
{
"$$flat": [ /* arrays / elements */ ]
}
Returns​
array
Arguments​
Argument | Type | Values | Required / Default Value | Description |
---|---|---|---|---|
Primary | array | Yes | Array of arrays / elements |
Examples​
Input
Definition
Output
[
"a",
"b"
]
{
"$$flat": [
"$",
null,
"c",
["d", null]
]
}
[
"a",
"b",
"c",
"d"
]