The type of the elements in the arrays.
The first array to compare.
The second array to compare. Checks if two arrays are shallowly equal.
A boolean indicating whether the two arrays are shallowly equal.
arrShallowEquals([1, 2, 3], [1, 2, 3]);
//=> true
arrShallowEquals([1, 2, 3], [1, 2, 4]);
//=> false
Generated using TypeDoc
This function compares the length of the two arrays and then checks if each element at the corresponding index is equal.