$$entries
Gets the entries* of an object or an array
note
*Entry is in the form of [ key / index, value ]
Usage​
{
"$$entries": /* An `object` or an `array` to get entries from */
}
"$$entries:{input}"
Returns​
[string,any][]
Arguments​
Argument | Type | Values | Required / Default Value | Description |
---|---|---|---|---|
Primary | any | Yes | An object or an array to get entries from |
Examples​
Input
Definition
Output
{
"a": 1,
"b": true,
"c": "C"
}
"$$entries:$"
[
[
"a",
1
],
[
"b",
true
],
[
"c",
"C"
]
]
[
1,
true,
"C"
]
"$$entries:$"
[
[
0,
1
],
[
1,
true
],
[
2,
"C"
]
]
{
"a": 1,
"b": true,
"c": "C"
}
{
"$$entries": "$"
}
[
[
"a",
1
],
[
"b",
true
],
[
"c",
"C"
]
]
[
1,
true,
"C"
]
{
"$$entries": "$"
}
[
[
0,
1
],
[
1,
true
],
[
2,
"C"
]
]
{
"a": 1,
"b": true,
"c": "C"
}
{
"$$entries": {
"*": "$",
"d": 0.5
}
}
[
[
"a",
1
],
[
"b",
true
],
[
"c",
"C"
],
[
"d",
0.5
]
]