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

Function arrayIsEqual

docs/pseudo.esm.sh/tinybase@9.0.0/index.js:84–84  ·  view source on GitHub ↗
(array1, array2)

Source from the content-addressed store, hash-verified

82var arrayHas = (array, value) => array.includes(value);
83var arrayEvery = (array, cb) => array.every(cb);
84var arrayIsEqual = (array1, array2) => size(array1) === size(array2) && arrayEvery(array1, (value1, index) => array2[index] === value1);
85var arrayIsSorted = (array, sorter) => arrayEvery(
86 array,
87 (value, index) => index == 0 || sorter(array[index - 1], value) <= 0

Callers 2

processRowFunction · 0.70

Calls 2

sizeFunction · 0.70
arrayEveryFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…