MCPcopy Index your code
hub / github.com/immutable-js/immutable-js / some

Function some

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

Source from the content-addressed store, hash-verified

264 },
265
266 some(predicate, context) {
267 assertNotInfinite(this.size);
268 let returnValue = false;
269 this.__iterate((v, k, c) => {
270 if (predicate.call(context, v, k, c)) {
271 returnValue = true;
272 return false;
273 }
274 });
275 return returnValue;
276 },
277
278 sort(comparator) {
279 return reify(this, sortFactory(this, comparator));

Callers

nothing calls this directly

Calls 2

assertNotInfiniteFunction · 0.85
__iterateMethod · 0.45

Tested by

no test coverage detected