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

Function getClassName

lib/assets/react-source/development/react-server.js:4346–4351  ·  view source on GitHub ↗
(propValue)

Source from the content-addressed store, hash-verified

4344
4345 // Returns class name of the object, if any.
4346 function getClassName(propValue) {
4347 if (!propValue.constructor || !propValue.constructor.name) {
4348 return ANONYMOUS;
4349 }
4350 return propValue.constructor.name;
4351 }
4352
4353 ReactPropTypes.checkPropTypes = checkPropTypes;
4354 ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;

Callers 1

validateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected