The key by which to check uniqueness against. undefined if no uniqueness constraint is set.
Protected_Protected_Protected_Protectedinternal remove function, to remove an item from the collection, does not raise an event.
returns the index of the removed item or -1 if the item has not been found.
Do not call add directly. Use request category for adding categories.
clears the array
Destroys the collection, clearing the array and all its events
Returns true, if the key exists. Returns undefined, if there is no uniqueness constraint.
Returns the index of an item or -1 if it is not part of this collection
Returns the index of a key. Returns undefined, if there is no uniqueness constraint
Lowers an item within the array
Optionalsteps: number = 1an integer number to lower by
the new index of the item
Moves an item to a provided index
the new index of the item
Parses the category items. Items will only be parsed, if a category with said name exists. Otherwise, they will be cached, until such a category is requested.
Raises an item within the array
Optionalsteps: number = 1an integer number to lower by
the new index of the item
Categories should be static. Removing them can lead to undefined behavior.
StaticfromCreates a Collection from an iterable, such as an Array.
Get the symbol which is attached to an item prior to its removal. If an item is removed, the current index of the item is set on the item with this symbol.