Map Pairs | MAP_PAIRS

Syntax

MAP_GET( [value] )

Parameters

value
A MAP / OBJECT.

Return Value

An array of key-value pairs.

Description

Convert a MAP / OBJECT into an ARRAY of key-value pairs.

Examples

# VALUE is ["a" => 1, "b" => 2]
MAP_PAIRS(VALUE, "a") # returns [["a", 1], ["b", 2]]