Map Size | MAP_SIZE

Syntax

MAP_SIZE( [value] )

Parameters

value
A MAP / OBJECT.

Return Value

Returns the number of entries in the VALUE

Description

Get the count of the entries in a MAP / OBJECT.

Examples

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