MCPcopy Create free account
hub / github.com/immutable-js/immutable-js / every

Function every

src/CollectionImpl.js:185–195  ·  view source on GitHub ↗
(predicate, context)

Source from the content-addressed store, hash-verified

183 },
184
185 every(predicate, context) {
186 assertNotInfinite(this.size);
187 let returnValue = true;
188 this.__iterate((v, k, c) => {
189 if (!predicate.call(context, v, k, c)) {
190 returnValue = false;
191 return false;
192 }
193 });
194 return returnValue;
195 },
196
197 filter(predicate, context) {
198 return reify(this, filterFactory(this, predicate, context, true));

Callers

nothing calls this directly

Calls 2

assertNotInfiniteFunction · 0.85
__iterateMethod · 0.45

Tested by

no test coverage detected