# deep-is

> node's assert.deepEqual algorithm except for NaN being equal to NaN

Latest version **0.1.4** (published 2021-09-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install deep-is
pnpm add deep-is
yarn add deep-is
bun add deep-is
```

## 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.1.4 |
| Published | 2021-09-04 |
| First published | 2013-04-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 21 |
| Author | Thorsten Lorenz |
| Maintainers | thlorenz |
| Keywords | equality, equal, compare |

## Links

- npm: https://www.npmjs.com/package/deep-is
- Repository: https://github.com/thlorenz/deep-is
- Homepage: https://github.com/thlorenz/deep-is#readme
- Issues: https://github.com/thlorenz/deep-is/issues
- npm.io page: https://npm.io/package/deep-is

## Recent versions

- 0.1.4 (latest) — 2021-09-04
- 0.1.3 — 2014-08-24
- 0.1.2 — 2013-05-12
- 0.1.1 — 2013-04-17
- 0.1.0 — 2013-04-11

## README

deep-is
==========

Node's `assert.deepEqual() algorithm` as a standalone module. Exactly like
[deep-equal](https://github.com/substack/node-deep-equal) except for the fact that `deepEqual(NaN, NaN) === true`.

This module is around [5 times faster](https://gist.github.com/2790507)
than wrapping `assert.deepEqual()` in a `try/catch`.

[![browser support](http://ci.testling.com/thlorenz/deep-is.png)](http://ci.testling.com/thlorenz/deep-is)

[![build status](https://secure.travis-ci.org/thlorenz/deep-is.png)](http://travis-ci.org/thlorenz/deep-is)

example
=======

``` js
var equal = require('deep-is');
console.dir([
    equal(
        { a : [ 2, 3 ], b : [ 4 ] },
        { a : [ 2, 3 ], b : [ 4 ] }
    ),
    equal(
        { x : 5, y : [6] },
        { x : 5, y : 6 }
    )
]);
```

methods
=======

var deepIs = require('deep-is')

deepIs(a, b)
---------------

Compare objects `a` and `b`, returning whether they are equal according to a
recursive equality algorithm.

install
=======

With [npm](http://npmjs.org) do:

```
npm install deep-is
```

test
====

With [npm](http://npmjs.org) do:

```
npm test
```

license
=======

Copyright (c) 2012, 2013 Thorsten Lorenz <thlorenz@gmx.de>
Copyright (c) 2012 James Halliday <mail@substack.net>

Derived largely from node's assert module, which has the copyright statement:

Copyright (c) 2009 Thomas Robinson <280north.com>

Released under the MIT license, see LICENSE for details.

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