MCPcopy
hub / github.com/josdejong/mathjs / findFactoryName

Function findFactoryName

tools/entryGenerator.js:466–476  ·  view source on GitHub ↗
(factories, name)

Source from the content-addressed store, hash-verified

464}
465
466function findFactoryName (factories, name) {
467 for (const factoryName in factories) {
468 if (hasOwnProperty(factories, factoryName)) {
469 if (factories[factoryName].fn === name) {
470 return factoryName
471 }
472 }
473 }
474
475 return undefined
476}
477
478function findKey (object, value) {
479 for (const key in object) {

Callers 1

Calls 1

hasOwnPropertyFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…