The first array-like object to compare.
The second array-like object to compare.
Optional fn: ((a: T, b: T) => boolean)The comparison function to apply to the elements. It
should return true if the elements are "equal". The default
compares elements using strict === equality.
Generated using TypeDoc
Test whether two arrays are shallowly equal.
Returns
Whether the two arrays are shallowly equal.
Complexity
Linear.
Undefined Behavior
Modifying the length of the arrays while comparing.
Example