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

Function getClassName

code/redux/public/app.js:1851–1856  ·  view source on GitHub ↗
(propValue)

Source from the content-addressed store, hash-verified

1849
1850 // Returns class name of the object, if any.
1851 function getClassName(propValue) {
1852 if (!propValue.constructor || !propValue.constructor.name) {
1853 return ANONYMOUS;
1854 }
1855 return propValue.constructor.name;
1856 }
1857
1858 ReactPropTypes.checkPropTypes = checkPropTypes;
1859 ReactPropTypes.PropTypes = ReactPropTypes;

Callers 1

validateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected