npm.io
2.0.0 • Published 1 year ago

array-equal

Licence
MIT
Version
2.0.0
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
39

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

Keywords