(value: mixed)
| 19 | |
| 20 | // $FlowFixMe[incompatible-return] only called in DEV, so void return is not possible. |
| 21 | function typeName(value: mixed): string { |
| 22 | if (__DEV__) { |
| 23 | // toStringTag is needed for namespaced types like Temporal.Instant |
| 24 | const hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag; |
| 25 | const type = |
| 26 | (hasToStringTag && (value: any)[Symbol.toStringTag]) || |
| 27 | (value: any).constructor.name || |
| 28 | 'Object'; |
| 29 | // $FlowFixMe[incompatible-return] |
| 30 | return type; |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | // $FlowFixMe[incompatible-return] only called in DEV, so void return is not possible. |
| 35 | function willCoercionThrow(value: mixed): boolean { |
no outgoing calls
no test coverage detected