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

Function getClassName

code/styling/public/app.js:1600–1605  ·  view source on GitHub ↗
(propValue)

Source from the content-addressed store, hash-verified

1598
1599 // Returns class name of the object, if any.
1600 function getClassName(propValue) {
1601 if (!propValue.constructor || !propValue.constructor.name) {
1602 return ANONYMOUS;
1603 }
1604 return propValue.constructor.name;
1605 }
1606
1607 ReactPropTypes.checkPropTypes = checkPropTypes;
1608 ReactPropTypes.PropTypes = ReactPropTypes;

Callers 1

validateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected