size()

size()

Overview

The size() function takes a mapVariable as argument, and returns the count of key-value pairs in the map.

Return Type

  • Number

Syntax

<variable>= <mapVariable>.size();
ParameterDescriptionData 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

mapVar = {"Product" : "Zoho Creator", "Version" : 5};
size = mapVar.size();             // returns 2

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohodeluge.com