(propValue)
| 1691 | |
| 1692 | // Returns class name of the object, if any. |
| 1693 | function getClassName(propValue) { |
| 1694 | if (!propValue.constructor || !propValue.constructor.name) { |
| 1695 | return ANONYMOUS; |
| 1696 | } |
| 1697 | return propValue.constructor.name; |
| 1698 | } |
| 1699 | |
| 1700 | ReactPropTypes.checkPropTypes = checkPropTypes; |
| 1701 | ReactPropTypes.PropTypes = ReactPropTypes; |