(propValue)
| 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; |