API Reference / @evolu/common / Eq / eqArrayNumber

Variable: eqArrayNumber

const eqArrayNumber: Eq<ArrayLike<number>>;

Defined in: packages/common/src/Eq.ts:65

Compares two array-like structures of numbers for equality.

Example

eqArrayNumber([1, 2, 3], [1, 2, 3]); // true (works with regular arrays)
eqArrayNumber(new Uint8Array([1, 2, 3]), new Uint8Array([1, 2, 3])); // true (works with Uint8Array)
eqArrayNumber([1, 2, 3], [1, 2, 4]); // false

Was this page helpful?