(propValue)
| 1592 | |
| 1593 | // Returns class name of the object, if any. |
| 1594 | function getClassName(propValue) { |
| 1595 | if (!propValue.constructor || !propValue.constructor.name) { |
| 1596 | return ANONYMOUS; |
| 1597 | } |
| 1598 | return propValue.constructor.name; |
| 1599 | } |
| 1600 | |
| 1601 | ReactPropTypes.checkPropTypes = checkPropTypes; |
| 1602 | ReactPropTypes.PropTypes = ReactPropTypes; |