Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

array-equal

sindresorhus8.2mMIT1.0.2TypeScript support: definitely-typed

Check if two arrays are equal

array, equal, equals, same, identical, equality, compare, validate

readme

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