size()
Table of Contents
Overview
The size() function takes a mapVariable as argument, and returns the count of key-value pairs in the map.
Return Type
- Number
Syntax
Parameter | Description | Data type |
---|---|---|
<variable> | Variable which will contain the returned number. | NUMBER |
<mapVariable> | The map variable whose count of key-value pairs will be returned. | KEY-VALUE |
Examples
size = mapVar.size(); // returns 2