MCPcopy
hub / github.com/Semantic-Org/Semantic-UI / constructorName

Function constructorName

test/helpers/sinon.js:454–469  ·  view source on GitHub ↗
(f, object)

Source from the content-addressed store, hash-verified

452 }
453
454 function constructorName(f, object) {
455 var name = functionName(object && object.constructor);
456 var excludes = f.excludeConstructors ||
457 formatio.excludeConstructors || [];
458
459 var i, l;
460 for (i = 0, l = excludes.length; i < l; ++i) {
461 if (typeof excludes[i] === "string" && excludes[i] === name) {
462 return "";
463 } else if (excludes[i].test && excludes[i].test(name)) {
464 return "";
465 }
466 }
467
468 return name;
469 }
470
471 function isCircular(object, objects) {
472 if (typeof object !== "object") { return false; }

Callers 1

sinon.jsFile · 0.85

Calls 1

functionNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…