# are-deeply-equal

> Check if two values are deeply equal to each other.

Latest version **1.1.2** (published 2025-01-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install are-deeply-equal
pnpm add are-deeply-equal
yarn add are-deeply-equal
bun add are-deeply-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 | 1.1.2 |
| Published | 2025-01-12 |
| First published | 2022-11-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Maintainers | fabiospampinato |
| Keywords | check, deep, equal |

## Links

- npm: https://www.npmjs.com/package/are-deeply-equal
- Repository: https://github.com/fabiospampinato/are-deeply-equal
- Homepage: https://github.com/fabiospampinato/are-deeply-equal#readme
- Issues: https://github.com/fabiospampinato/are-deeply-equal/issues
- npm.io page: https://npm.io/package/are-deeply-equal

## Recent versions

- 1.1.2 (latest) — 2025-01-12
- 1.1.1 — 2024-02-04
- 1.1.0 — 2024-02-04
- 1.0.3 — 2023-12-22
- 1.0.2 — 2023-03-05
- 1.0.1 — 2022-11-05
- 1.0.0 — 2022-11-04

## README

# Are Deeply Equal

Check if two values are deeply equal to each other.

It supports comparing primitives, `Array`, `Map`, `Set`, `Date`, `RegExp`, `ArrayBuffer`, `DataView`, `Int8Array`, `Uint8Array`, `Uint8ClampedArray`, `Int16Array`, `Uint16Array`, `Int32Array`, `Uint32Array`, `Float32Array`, `Float64Array`, `BigInt64Array`, `BigUint64Array`, `Promise`, `WeakMap`, `WeakSet`, `Node`, plain objects, objects with a custom `valueOf` function, and other classes (which are treated like plain objects).

## Install

```sh
npm install are-deeply-equal
```

## Usage

```ts
import areDeeplyEqual from 'are-deeply-equal';

// Let's compare two values for deep equality

areDeeplyEqual ( [123, { value: 'foo' }], [123, { value: 'foo' }] ); // => true
areDeeplyEqual ( [true], [false] ); // => false
```

## License

MIT © Fabio Spampinato

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