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

Function functionName

test/helpers/sinon.js:446–452  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

444 }
445
446 function functionName(func) {
447 if (!func) { return ""; }
448 if (func.displayName) { return func.displayName; }
449 if (func.name) { return func.name; }
450 var matches = func.toString().match(/function\s+([^\(]+)/m);
451 return (matches && matches[1]) || "";
452 }
453
454 function constructorName(f, object) {
455 var name = functionName(object && object.constructor);

Callers 2

constructorNameFunction · 0.85
sinon.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…