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

Function getClassName

code/higher-order-components/public/app.js:1594–1599  ·  view source on GitHub ↗
(propValue)

Source from the content-addressed store, hash-verified

1592
1593 // Returns class name of the object, if any.
1594 function getClassName(propValue) {
1595 if (!propValue.constructor || !propValue.constructor.name) {
1596 return ANONYMOUS;
1597 }
1598 return propValue.constructor.name;
1599 }
1600
1601 ReactPropTypes.checkPropTypes = checkPropTypes;
1602 ReactPropTypes.PropTypes = ReactPropTypes;

Callers 1

validateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected