@cjser/array-equal
v2.0.0-cjser.2
Published
Check if two arrays are equal
Maintainers
Readme
array-equal
Check if two arrays are equal
It checks that the elements and order are the same.
Install
npm install array-equalUsage
import arrayEqual from 'array-equal';
arrayEqual([1, 2, 3], [1, 2, 3]);
//=> true
arrayEqual([1, 2, 3], [1, 2, 3, 4]);
//=> falsecjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/array-equal
