$$object
Reduces an array of entries into an object
note
*Entry is in the form of [ key, value ]
Usage​
{
"$$object": [ /* entries */ ]
}
"$$object:{input}"
Returns​
object
Arguments​
Argument | Type | Values | Required / Default Value | Description |
---|---|---|---|---|
Primary | array | Yes | Array of entries (in the form of [key, value] ) |
Examples​
Input
Definition
Output
[
["a", 1],
["b", true],
["c", "C"]
]
{ "$$object": "$" }
{
"a": 1,
"b": true,
"c": "C"
}
[
[0, 1],
[1, true],
[2, "C"]
]
{ "$$object": "$" }
{
"0": 1,
"1": true,
"2": "C"
}
[
["a", 1],
["b", true],
["c", "C"]
]
"$$object:$"
{
"a": 1,
"b": true,
"c": "C"
}
[
[0, 1],
[1, true],
[2, "C"]
]
"$$object:$"
{
"0": 1,
"1": true,
"2": "C"
}