* Checks if argument is an "indexable" object (not a primitive value, nor null) * @param value - JavaScript value to be tested * @return true if argument is a JavaScript object
(value: unknown)
| 27 | * @return true if argument is a JavaScript object |
| 28 | */ |
| 29 | function isObject(value: unknown): value is Record<string, unknown> { |
| 30 | return value !== null && typeof value === 'object'; |
| 31 | } |
| 32 | |
| 33 | // Cache key to key arrays for speed |
| 34 | const keyMap: Record<string, string[]> = {}; |
no outgoing calls
no test coverage detected
searching dependent graphs…