# array-equal

> Check if two arrays are equal

Latest version **2.0.0** (published 2025-04-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install array-equal
pnpm add array-equal
yarn add array-equal
bun add array-equal
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2025-04-08 |
| First published | 2014-04-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=20 |
| Dependencies | 0 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 39 |
| Maintainers | sindresorhus |
| Keywords | array, equal, equals, same, identical, equality, compare, validate |

## Links

- npm: https://www.npmjs.com/package/array-equal
- Repository: https://github.com/sindresorhus/array-equal
- Homepage: https://github.com/sindresorhus/array-equal#readme
- Issues: https://github.com/sindresorhus/array-equal/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/array-equal

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2025-04-08
- 1.0.2 — 2023-11-16
- 1.0.0 — 2014-04-29

## README

# array-equal

> Check if two arrays are equal

It checks that the elements and order are the same.

## Install

```sh
npm install array-equal
```

## Usage

```js
import arrayEqual from 'array-equal';

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

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

---
_Source: https://npm.io/package/array-equal · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
