(obj: unknown)
| 85 | } |
| 86 | |
| 87 | function isObject(obj: unknown): boolean { |
| 88 | return typeof obj === 'object' |
| 89 | && obj !== null |
| 90 | && !Array.isArray(obj) |
| 91 | && !(obj instanceof RegExp) |
| 92 | && !(obj instanceof Date); |
| 93 | } |
| 94 | |
| 95 | function safeSendConsoleMessage(severity: 'log' | 'warn' | 'error', args: string): void { |
| 96 | safeSend({ type: '__$console', severity, arguments: args }); |
no test coverage detected
searching dependent graphs…