Readonly
forOptional
context: unknownReadonly
mapReturns a new Set with values passed through a
mapper
function.
OrderedSet([ 1, 2 ]).map(x => 10 * x)
// OrderedSet [10, 20]
Optional
context: unknownReadonly
sizeReadonly
valuesAn iterator of this Collection
's values.
Note: this will return an ES6 iterator which does not support
Immutable.js sequence algorithms. Use valueSeq
instead, if this is
what you want.
Generated using TypeDoc
The
sideEffect
is executed for every entry in the Collection.Unlike
Array#forEach
, if any call ofsideEffect
returnsfalse
, the iteration will stop. Returns the number of entries iterated (including the last iteration which returned false).