array-equal
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/array-equal package

1.0.2 • Public • Published

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

Package Sidebar

Install

npm i array-equal

Weekly Downloads

5,327,805

Version

1.0.2

License

MIT

Unpacked Size

2.38 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus