1.0.1 • Published 4 years ago

@nickgraffis/array.equals v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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
1.0.1

4 years ago

1.0.0

4 years ago