(object: mixed)
| 90 | } |
| 91 | |
| 92 | export function objectName(object: mixed): string { |
| 93 | // $FlowFixMe[method-unbinding] |
| 94 | const name = Object.prototype.toString.call(object); |
| 95 | // Extract 'Object' from '[object Object]': |
| 96 | return name.slice(8, name.length - 1); |
| 97 | } |
| 98 | |
| 99 | function describeKeyForErrorMessage(key: string): string { |
| 100 | const encodedKey = JSON.stringify(key); |
no outgoing calls
no test coverage detected