MCPcopy Index your code
hub / github.com/tinyplex/tinybase / objSize

Function objSize

src/common/obj.ts:70–70  ·  view source on GitHub ↗
(obj: IdObj<unknown>)

Source from the content-addressed store, hash-verified

68 object.values(obj);
69
70export const objSize = (obj: IdObj<unknown>): number => size(objIds(obj));
71
72export const objIsEmpty = <Value>(obj: IdObj<Value> | any): boolean =>
73 isObject(obj) && objSize(obj) == 0;

Callers 4

getPersistedFunction · 0.90
objIsEmptyFunction · 0.70
objIsEqualFunction · 0.70

Calls 1

sizeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…