( obj: Record<string, V> | undefined | null, )
| 3023 | } |
| 3024 | |
| 3025 | function safeEntries<V>( |
| 3026 | obj: Record<string, V> | undefined | null, |
| 3027 | ): [string, V][] { |
| 3028 | return obj ? Object.entries(obj) : [] |
| 3029 | } |
| 3030 | |
| 3031 | function safeKeys(obj: Record<string, unknown> | undefined | null): string[] { |
| 3032 | return obj ? Object.keys(obj) : [] |
no test coverage detected