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.
The key by which to check uniqueness against. undefined if no uniqueness constraint is set.
OptionaluniqueKey: false | keyof Ta key to maintain uniquely within the collection. passing false disables uniqueness.
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.
Adds an item to the collection. Can optionally be passed an index at which to insert the item.
the item to be inserted
Optionalindex: number | nullan optional index at which to insert the item. clipped to the last entry
the index at which the item was inserted
clears the array
Destroys the collection, clearing the array and all its events
Returns an item identified by the unique constraint key. Returns null, if there is no uniqueness constraint.
the value to test against. does a shallow comparison, if the passed a non-atomic value
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
Raises an item within the array
Optionalsteps: number = 1an integer number to lower by
the new index of the item
StaticfromCreates a Collection from an iterable, such as an Array.
A generic array based collection. Implements the Symbol.iterator (e.g. [...collection])