(propValue)
| 1633 | |
| 1634 | // Returns class name of the object, if any. |
| 1635 | function getClassName(propValue) { |
| 1636 | if (!propValue.constructor || !propValue.constructor.name) { |
| 1637 | return ANONYMOUS; |
| 1638 | } |
| 1639 | return propValue.constructor.name; |
| 1640 | } |
| 1641 | |
| 1642 | ReactPropTypes.checkPropTypes = checkPropTypes; |
| 1643 | ReactPropTypes.PropTypes = ReactPropTypes; |