(propValue)
| 1471 | |
| 1472 | // Returns class name of the object, if any. |
| 1473 | function getClassName(propValue) { |
| 1474 | if (!propValue.constructor || !propValue.constructor.name) { |
| 1475 | return ANONYMOUS; |
| 1476 | } |
| 1477 | return propValue.constructor.name; |
| 1478 | } |
| 1479 | |
| 1480 | ReactPropTypes.checkPropTypes = checkPropTypes; |
| 1481 | ReactPropTypes.PropTypes = ReactPropTypes; |