$$concat
Concatenates primary value array with elements or other arrays of elements.
note
Elements which are null
on the primary value will be ignored.
Usage​
{
"$$concat": [ /* arrays / elements */ ]
}
"$$concat:{input}"
Returns​
array
Arguments​
Argument | Type | Values | Required / Default Value | Description |
---|---|---|---|---|
Primary | array | Yes | Array of arrays / elements (null elements are ignored) |
Examples​
Input
Definition
Output
[["a","b"],["c","d"]]
{ "$$concat": "$" }
["a","b","c","d"]
["a","b"]
{ "$$concat": ["$", ["c", "d"]] }
["a","b","c","d"]
["a","b"]
{ "$$concat": ["$", "c", "d"] }
["a","b","c","d"]
["a","b"]
{ "$$concat": ["$", null, "c", ["d", null]] }
["a","b","c","d",null]