@nickgraffis/array.equals
v1.0.1
Published
Method to compare two arrays.
Downloads
3
Readme
Array.equals
Method to compare two arrays.
Install with NPM
npm install @nickgraffis/array.equals
Demo
var wholeFoods = ['grapes', 'apples', 'carrots', 'squash'];
var traderJoes = ['grapes', 'apples', 'carrots', 'squash'];
var sprouts = ['candy', 'cake', 'chicken'];
console.log(wholeFoods.equals(traderJoes));
output => true
console.log(traderJoes.equals(sprouts));
output => false