Returns whether the given arrays are equal
Optional
the source array to check
the target array to compare
whether the given arrays are equal
David Hsing
equals(undefined, undefined); // trueequals(undefined, null); // falseequals([], []); // trueequals(['foo', 'bar'], ['foo', 'bar']); // trueequals(['foo', 'bar'], ['bar', 'foo']); // false Copy
equals(undefined, undefined); // trueequals(undefined, null); // falseequals([], []); // trueequals(['foo', 'bar'], ['foo', 'bar']); // trueequals(['foo', 'bar'], ['bar', 'foo']); // false
Returns whether the given arrays are equal