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

Function getClassName

code/communication/public/app.js:1635–1640  ·  view source on GitHub ↗
(propValue)

Source from the content-addressed store, hash-verified

1633
1634 // Returns class name of the object, if any.
1635 function getClassName(propValue) {
1636 if (!propValue.constructor || !propValue.constructor.name) {
1637 return ANONYMOUS;
1638 }
1639 return propValue.constructor.name;
1640 }
1641
1642 ReactPropTypes.checkPropTypes = checkPropTypes;
1643 ReactPropTypes.PropTypes = ReactPropTypes;

Callers 1

validateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected