node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org »

array-equal

Array Equal

Check if two arrays are equal:

var equals = require('array-equal')
 
assert(equals([1, 2, 3], [1, 2, 3])) // => true 
assert(equals([1, 2, 3], [1, 2, 3, 4])) // => false