isArrayEqual

Function

Determines if two arrays are shallowly equal.

  • isArrayEqual(a: unknown[], b: unknown[]) : boolean

Parameters

Parameter Type Default Notes
a Required unknown[]

The first array to compare.

b Required unknown[]

The second array to compare.

Returns

True if both arrays are the same reference or contain identical elements in the same order; otherwise, false.

boolean

Function defined in common/src/utils/array.ts:8