(propValue)
| 9532 | |
| 9533 | // Returns class name of the object, if any. |
| 9534 | function getClassName(propValue) { |
| 9535 | if (!propValue.constructor || !propValue.constructor.name) { |
| 9536 | return ANONYMOUS; |
| 9537 | } |
| 9538 | return propValue.constructor.name; |
| 9539 | } |
| 9540 | |
| 9541 | ReactPropTypes.checkPropTypes = checkPropTypes; |
| 9542 | ReactPropTypes.PropTypes = ReactPropTypes; |