(propValue)
| 1736 | |
| 1737 | // Returns class name of the object, if any. |
| 1738 | function getClassName(propValue) { |
| 1739 | if (!propValue.constructor || !propValue.constructor.name) { |
| 1740 | return ANONYMOUS; |
| 1741 | } |
| 1742 | return propValue.constructor.name; |
| 1743 | } |
| 1744 | |
| 1745 | ReactPropTypes.checkPropTypes = checkPropTypes; |
| 1746 | ReactPropTypes.PropTypes = ReactPropTypes; |