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

Function arrayOrValueEqual

src/common/array.ts:27–30  ·  view source on GitHub ↗
(value1: any, value2: any)

Source from the content-addressed store, hash-verified

25 arrayEvery(array1, (value1, index) => array2[index] === value1);
26
27export const arrayOrValueEqual = (value1: any, value2: any): boolean =>
28 isArray(value1) && isArray(value2)
29 ? arrayIsEqual(value1, value2)
30 : value1 === value2;
31
32export const arrayIsSorted = <Value>(
33 array: Value[],

Callers

nothing calls this directly

Calls 2

isArrayFunction · 0.90
arrayIsEqualFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…