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

Function getClassName

code/composition/public/app.js:1738–1743  ·  view source on GitHub ↗
(propValue)

Source from the content-addressed store, hash-verified

1736
1737 // Returns class name of the object, if any.
1738 function getClassName(propValue) {
1739 if (!propValue.constructor || !propValue.constructor.name) {
1740 return ANONYMOUS;
1741 }
1742 return propValue.constructor.name;
1743 }
1744
1745 ReactPropTypes.checkPropTypes = checkPropTypes;
1746 ReactPropTypes.PropTypes = ReactPropTypes;

Callers 1

validateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected