(propValue)
| 12753 | // This handles more types than `getPropType`. Only used for error messages. |
| 12754 | // See `createPrimitiveTypeChecker`. |
| 12755 | function getPreciseType(propValue) { |
| 12756 | var propType = getPropType(propValue); |
| 12757 | if (propType === 'object') { |
| 12758 | if (propValue instanceof Date) { |
| 12759 | return 'date'; |
| 12760 | } else if (propValue instanceof RegExp) { |
| 12761 | return 'regexp'; |
| 12762 | } |
| 12763 | } |
| 12764 | return propType; |
| 12765 | } |
| 12766 | |
| 12767 | // Returns class name of the object, if any. |
| 12768 | function getClassName(propValue) { |
no test coverage detected