-
Notifications
You must be signed in to change notification settings - Fork 5
isEqual
Subhajit Sahu edited this page Mar 15, 2020
·
23 revisions
Checks if two arrays are equal.
array.isEqual(x, y, [fn]);
// x: an array
// y: another array
// fn: compare function (a, b)
// --> true if equal
const array = require('extra-array');
array.isEqual([1], [1]);
// true
array.isEqual([1, 2], [1, 2]);
// true
array.isEqual([1, 2], [2, 1]);
// false