getLength method for collections (Client API reference)

Gets the count of items in the collection.

Syntax

collection.getLength()

Return value

Type: Number

Description: Count of items in the collection.

Collections in Client API
forEach
get