MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / getClassName

Function getClassName

code/dependency-injection/public/app.js:1693–1698  ·  view source on GitHub ↗
(propValue)

Source from the content-addressed store, hash-verified

1691
1692 // Returns class name of the object, if any.
1693 function getClassName(propValue) {
1694 if (!propValue.constructor || !propValue.constructor.name) {
1695 return ANONYMOUS;
1696 }
1697 return propValue.constructor.name;
1698 }
1699
1700 ReactPropTypes.checkPropTypes = checkPropTypes;
1701 ReactPropTypes.PropTypes = ReactPropTypes;

Callers 1

validateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected