(propValue)
| 12840 | // This handles more types than `getPropType`. Only used for error messages. |
| 12841 | // See `createPrimitiveTypeChecker`. |
| 12842 | function getPreciseType(propValue) { |
| 12843 | var propType = getPropType(propValue); |
| 12844 | if (propType === 'object') { |
| 12845 | if (propValue instanceof Date) { |
| 12846 | return 'date'; |
| 12847 | } else if (propValue instanceof RegExp) { |
| 12848 | return 'regexp'; |
| 12849 | } |
| 12850 | } |
| 12851 | return propType; |
| 12852 | } |
| 12853 | |
| 12854 | // Returns class name of the object, if any. |
| 12855 | function getClassName(propValue) { |
no test coverage detected
searching dependent graphs…