8000 GitHub - sindresorhus/array-equal: Check if two arrays are equal
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sindresorhus/array-equal

Repository files navigation

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

About

Check if two arrays are equal

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

0