(value)
| 199 | */ |
| 200 | // $FlowFixMe only called in DEV, so void return is not possible. |
| 201 | function typeName(value) { |
| 202 | { |
| 203 | // toStringTag is needed for namespaced types like Temporal.Instant |
| 204 | var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag; |
| 205 | var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object'; |
| 206 | return type; |
| 207 | } |
| 208 | } // $FlowFixMe only called in DEV, so void return is not possible. |
| 209 | |
| 210 | |
| 211 | function willCoercionThrow(value) { |
no outgoing calls
no test coverage detected
searching dependent graphs…