(propValue)
| 1849 | |
| 1850 | // Returns class name of the object, if any. |
| 1851 | function getClassName(propValue) { |
| 1852 | if (!propValue.constructor || !propValue.constructor.name) { |
| 1853 | return ANONYMOUS; |
| 1854 | } |
| 1855 | return propValue.constructor.name; |
| 1856 | } |
| 1857 | |
| 1858 | ReactPropTypes.checkPropTypes = checkPropTypes; |
| 1859 | ReactPropTypes.PropTypes = ReactPropTypes; |