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

Function getClassName

code/one-direction-data-flow/public/app.js:1473–1478  ·  view source on GitHub ↗
(propValue)

Source from the content-addressed store, hash-verified

1471
1472 // Returns class name of the object, if any.
1473 function getClassName(propValue) {
1474 if (!propValue.constructor || !propValue.constructor.name) {
1475 return ANONYMOUS;
1476 }
1477 return propValue.constructor.name;
1478 }
1479
1480 ReactPropTypes.checkPropTypes = checkPropTypes;
1481 ReactPropTypes.PropTypes = ReactPropTypes;

Callers 1

validateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected