Experimental
Experimental
Experimental
onExperimental
onExperimental
Count the amount of elements in the collection.
⚠️ In most cases, this should be an O(1)
operation. However, there are
cases where this can be an O(n)
operation. Therefore, it is recommended
to always cache the result in a local variable.
Experimental
Add an element to the collection. If the element already exists, update its value.
The location where the element is placed depends on the collection type, and in the generic case there is no guarantee on the location where it is inserted.
This method returns a pair with the first element indicating whether the element was added, while the second element refers to the actual location of the element.
Experimental
Copies all elements in the collection to a new one of the same kind.
An index that uses native JavaScript objects to efficiently store and retrieve arbitrary values.
This container only works with hashable JavaScript types, such as
string
ornumber
. Types that cannot be used as the key in a plain JavaScript object will not work.