Skip to content

Collection object

Like an array, a collection associates a set of objects or values as a logical group and provides access to them by index. However, most collection objects are read-only. You do not assign objects to them yourself — their contents update automatically as objects are created or deleted.

Objects


Attributes

Attribute Type Description
length Integer The number of objects in the collection.

Methods

Method Return Type Description
[] Object Retrieves an object in the collection by its index number. The first object is at index 1.