MCPcopy
hub / github.com/flightcontrolhq/superjson / isEmptyObject

Function isEmptyObject

src/is.ts:19–20  ·  view source on GitHub ↗
(payload: any)

Source from the content-addressed store, hash-verified

17};
18
19export const isEmptyObject = (payload: any): payload is {} =>
20 isPlainObject(payload) && Object.keys(payload).length === 0;
21
22export const isArray = (payload: any): payload is any[] =>
23 Array.isArray(payload);

Callers 2

walkerFunction · 0.85

Calls 1

isPlainObjectFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…