MCPcopy
hub / github.com/immutable-js/immutable-js / map

Method map

src/Operations.js:68–74  ·  view source on GitHub ↗
(mapper, context)

Source from the content-addressed store, hash-verified

66 }
67
68 map(mapper, context) {
69 const mappedSequence = mapFactory(this, mapper, context);
70 if (!this._useKeys) {
71 mappedSequence.valueSeq = () => this._iter.toSeq().map(mapper, context);
72 }
73 return mappedSequence;
74 }
75
76 __iterate(fn, reverse) {
77 return this._iter.__iterate((v, k) => fn(v, k, this), reverse);

Callers

nothing calls this directly

Calls 3

mapFactoryFunction · 0.85
mapMethod · 0.65
toSeqMethod · 0.65

Tested by

no test coverage detected