(propValue)
| 1598 | |
| 1599 | // Returns class name of the object, if any. |
| 1600 | function getClassName(propValue) { |
| 1601 | if (!propValue.constructor || !propValue.constructor.name) { |
| 1602 | return ANONYMOUS; |
| 1603 | } |
| 1604 | return propValue.constructor.name; |
| 1605 | } |
| 1606 | |
| 1607 | ReactPropTypes.checkPropTypes = checkPropTypes; |
| 1608 | ReactPropTypes.PropTypes = ReactPropTypes; |