Collection
Simple collection class
Methods
addItem
Add an item to the collection.
Example
Add an item to the collection:
Add an item to the collection with a specific key:
setItem
Update a item in the collection by key.
Example
Update item in the collection:
getItem
Get an item from the collection by key.
Example
Get an item from the collection:
keys
Get all the keys in the collection
Example
length
Get count of all the items in the collection.
Example
keyExists
Checks to see if a key exists in the collection.
Example
deleteItem
Delete an item from the collection.
Example
getItems
Get all items from a collection
Example