MCPcopy Create free account
hub / github.com/reactjs/react-rails / getClassName

Function getClassName

lib/assets/react-source/development/react.js:30990–30995  ·  view source on GitHub ↗
(propValue)

Source from the content-addressed store, hash-verified

30988
30989 // Returns class name of the object, if any.
30990 function getClassName(propValue) {
30991 if (!propValue.constructor || !propValue.constructor.name) {
30992 return ANONYMOUS;
30993 }
30994 return propValue.constructor.name;
30995 }
30996
30997 ReactPropTypes.checkPropTypes = checkPropTypes;
30998 ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;

Callers 1

validateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected