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

Function arrayNew

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

Source from the content-addressed store, hash-verified

56var getUndefined = () => void 0;
57var getArg = (value) => value;
58var arrayNew = (size2, cb) => arrayMap(new Array(size2).fill(0), (_, index) => cb(index));
59var arrayEvery = (array, cb) => array.every(cb);
60var arrayIsEqual = (array1, array2) => size(array1) === size(array2) && arrayEvery(array1, (value1, index) => array2[index] === value1);
61var arrayOrValueEqual = (value1, value2) => isArray(value1) && isArray(value2) ? arrayIsEqual(value1, value2) : value1 === value2;

Callers 1

ProviderFunction · 0.70

Calls 1

arrayMapFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…