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.
Optional
uniqueKey: false | keyof Ta key to maintain uniquely within the collection. passing false disables uniqueness.
Protected
_checkProtected
_moveProtected
_removeProtected
internal 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
Optional
index: null | numberan optional index at which to insert the item. clipped to the last entry
the index at which the item was inserted
Equivalent to Array.prototype.includes
Returns the index of an item or -1 if it is not part of this collection
Lowers an item within the array
Optional
steps: 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
Optional
steps: number = 1an integer number to lower by
the new index of the item
Removes an item from the collection
Static
fromCreates a Collection from an iterable, such as an Array.
A generic array based collection. Implements the Symbol.iterator (e.g. [...collection])