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

Method __iterator

src/Operations.js:139–147  ·  view source on GitHub ↗
(type, reverse)

Source from the content-addressed store, hash-verified

137 }
138
139 __iterator(type, reverse) {
140 const iterator = this._iter.__iterator(ITERATE_VALUES, reverse);
141 return new Iterator(() => {
142 const step = iterator.next();
143 return step.done
144 ? step
145 : iteratorValue(type, step.value, step.value, step);
146 });
147 }
148}
149
150export class FromEntriesSequence extends KeyedSeq {

Callers 15

__iteratorMethod · 0.45
__iteratorMethod · 0.45
__iteratorMethod · 0.45
flipFactoryFunction · 0.45
mapFactoryFunction · 0.45
reverseFactoryFunction · 0.45
filterFactoryFunction · 0.45
sliceFactoryFunction · 0.45
takeWhileFactoryFunction · 0.45
skipWhileFactoryFunction · 0.45
__iterateUncachedMethod · 0.45
__iteratorUncachedMethod · 0.45

Calls 2

iteratorValueFunction · 0.90
nextMethod · 0.80

Tested by

no test coverage detected