MCPcopy
hub / github.com/tinyplex/tinybase / isObject

Function isObject

src/common/obj.ts:14–23  ·  view source on GitHub ↗
(obj: unknown)

Source from the content-addressed store, hash-verified

12export const objEntries = object.entries;
13
14export const isObject = (obj: unknown): obj is IdObj<unknown> =>
15 !isNullish(obj) &&
16 (ifNotNullish(
17 getPrototypeOf(obj),
18 (objPrototype) =>
19 objPrototype == object.prototype ||
20 isNullish(getPrototypeOf(objPrototype)),
21 /*! istanbul ignore next */
22 () => true,
23 ) as boolean);
24
25export const objIds = object.keys;
26

Callers 15

cellOrValueEqualFunction · 0.90
useSortedRowIdsFunction · 0.90
useSortedRowIdsListenerFunction · 0.90
useSortedRowIdsFunction · 0.90
useSortedRowIdsListenerFunction · 0.90
getSortedRowIdsFunction · 0.90
addSortedRowIdsListenerFunction · 0.90
EditableThingFunction · 0.90
getPersistedFunction · 0.90
replaceUndefinedStringFunction · 0.90
getCellOrValueTypeFunction · 0.90
encodeIfJsonFunction · 0.90

Calls 2

isNullishFunction · 0.90
getPrototypeOfFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…