Skip to main content

$$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​

ArgumentTypeValuesRequired / Default ValueDescription
PrimaryarrayYesArray 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]