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

Function findEntry

src/CollectionImpl.js:326–335  ·  view source on GitHub ↗
(predicate, context, notSetValue)

Source from the content-addressed store, hash-verified

324 },
325
326 findEntry(predicate, context, notSetValue) {
327 let found = notSetValue;
328 this.__iterate((v, k, c) => {
329 if (predicate.call(context, v, k, c)) {
330 found = [k, v];
331 return false;
332 }
333 });
334 return found;
335 },
336
337 findKey(predicate, context) {
338 const entry = this.findEntry(predicate, context);

Callers

nothing calls this directly

Calls 1

__iterateMethod · 0.45

Tested by

no test coverage detected