Optional
uniqueKey: false | keyof Ta key to maintain uniquely within the collection. passing false disables uniqueness.
Protected
_checkProtected
_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.
the item to be inserted
the index at which the item was inserted
Equivalent to Array.prototype.includes
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])