MCPcopy
hub / github.com/visgl/deck.gl / isObject

Function isObject

modules/json/src/utils/get.ts:29–31  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

27 * @return true if argument is a JavaScript object
28 */
29function 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
34const keyMap: Record<string, string[]> = {};

Callers 1

getFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…