array-equal
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

array-equal

Check if two arrays are equal

It checks that the elements and order are the same.

Install

npm install array-equal

Usage

import arrayEqual from 'array-equal';

arrayEqual([1, 2, 3], [1, 2, 3]);
//=> true

arrayEqual([1, 2, 3], [1, 2, 3, 4]);
//=> false

Package Sidebar

Install

npm i array-equal

Weekly Downloads

2,881,375

Version

2.0.0

License

MIT

Unpacked Size

2.88 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus