Skip to main content

$$entries

Gets the entries* of an object or an array

note

*Entry is in the form of [ key / index, value ]

Usage​

{
"$$entries": /* value */
}
"$$entries:{input}"

Returns​

Entry[] (Entry is defined by [string, any])

Arguments​

ArgumentTypeValuesRequired / Default ValueDescription
Primaryobject/arrayYesAn 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"]
]