MCPcopy Index your code
hub / github.com/josdejong/mathjs / findKey

Function findKey

tools/entryGenerator.js:478–488  ·  view source on GitHub ↗
(object, value)

Source from the content-addressed store, hash-verified

476}
477
478function findKey (object, value) {
479 for (const key in object) {
480 if (hasOwnProperty(object, key)) {
481 if (object[key] === value) {
482 return key
483 }
484 }
485 }
486
487 return undefined
488}
489
490/**
491 * Sort the factories in such a way that their dependencies are resolved.

Callers 1

generateFunctionsFilesFunction · 0.85

Calls 1

hasOwnPropertyFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…