A type of Set that has the additional guarantee that the iteration order of values will be the order in which they were added.
add
The iteration behavior of OrderedSet is the same as native ES6 Set.
Note that OrderedSet are more expensive than non-ordered Set and may consume more memory. OrderedSet#add is amortized O(log32 N), but not stable.
OrderedSet
Set
OrderedSet#add
OrderedSet.fromKeys() creates a new immutable OrderedSet containing the keys from this Collection or JavaScript Object.
OrderedSet.fromKeys()
True if the provided value is an OrderedSet.
Creates a new OrderedSet containing values.
values
Generated using TypeDoc
A type of Set that has the additional guarantee that the iteration order of values will be the order in which they were
add
ed.The iteration behavior of OrderedSet is the same as native ES6 Set.
Note that
OrderedSet
are more expensive than non-orderedSet
and may consume more memory.OrderedSet#add
is amortized O(log32 N), but not stable.