# deepequal

> Deep comparison of two variables

Latest version **0.0.1** (published 2014-01-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install deepequal
pnpm add deepequal
yarn add deepequal
bun add deepequal
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2014-01-27 |
| First published | 2014-01-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Jayce Pulsipher |
| Maintainers | jaycetde |
| Keywords | deep, equal, compare |

## Links

- npm: https://www.npmjs.com/package/deepequal
- Repository: https://github.com/JayceTDE/deepequal
- npm.io page: https://npm.io/package/deepequal

## Dependencies (2)

- [is-args](https://npm.io/package/is-args.md) *
- [fast-apply](https://npm.io/package/fast-apply.md) *

## Recent versions

- 0.0.1 (latest) — 2014-01-27
- 0.0.0 — 2014-01-23

## README

# deepequal [![Build Status](https://travis-ci.org/JayceTDE/deepequal.png)](https://travis-ci.org/JayceTDE/deepequal)

Deep comparison of two variables

Unlike [deep-equal](https://github.com/substack/node-deep-equal), this will also compare Buffers,
Regular Expressions, and NaN (which I believe should equal NaN).

```javascript

var deepEqual = require('deepequal');

deepEqual([1, 2, 3], new Array(1, 2, 3));
// true;

deepEqual(NaN, NaN);
// true;

deepEqual({ a: [1, 2, 3] }, { a: [1, 3, 2] });
// false;

```

## Installation

    $ npm install deepequal

## Dependencies

  - [fast-apply](https://npmjs.org/package/fast-apply)
  - [is-args](https://npmjs.org/package/is-args)

## API

### deepEqual(a, b, strict)

  - strict - Use strict comparison (===) between primitives (Boolean, String, Number) (default: false)

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