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.
Optional
uniqueKey: false | keyof Ta key to maintain uniquely within the collection. passing false disables uniqueness.
Protected
_checkProtected
_moveProtected
_removeAdds 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
Static
fromCreates a Collection from an iterable, such as an Array.
Optional
uniqueKey: false | keyof Fa key to maintain uniquely within the collection. passing false disables uniqueness.
Protected
_arrayPrivate
_previousEvent raised if an item is added. Is passed the added item.
Event raised if an item is relocated within the collection. Is passed the moved item.
Event raised if an item is removed. Is passed the removed item.
Generated using TypeDoc
A generic array based collection. Implements the Symbol.iterator (e.g. [...collection])