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

Function size

docs/pseudo.esm.sh/tinybase@9.0.0/ui-react/index.js:55–55  ·  view source on GitHub ↗
(arrayOrString)

Source from the content-addressed store, hash-verified

53var isFunction = (thing) => getTypeOf(thing) == FUNCTION;
54var isArray = (thing) => Array.isArray(thing);
55var size = (arrayOrString) => arrayOrString.length;
56var getUndefined = () => void 0;
57var getArg = (value) => value;
58var arrayNew = (size2, cb) => arrayMap(new Array(size2).fill(0), (_, index) => cb(index));

Callers 4

arrayIsEqualFunction · 0.70
arrayIsEmptyFunction · 0.70
objSizeFunction · 0.70
objIsEqualFunction · 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…