# deep-compare

> Deep comparison of objects in JavaScript

Latest version **0.0.5** (published 2016-11-15) · MIT license · 0 weekly downloads

## Install

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

## 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.5 |
| Published | 2016-11-15 |
| First published | 2016-04-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Dang Van Thanh |
| Maintainers | dangvanthanh |
| Keywords | objects, compare |

## Links

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

## Recent versions

- 0.0.5 (latest) — 2016-11-15
- 0.0.4 — 2016-06-15
- 0.0.3 — 2016-04-27
- 0.0.2 — 2016-04-23
- 0.0.1 — 2016-04-22

## README

# deep-compare [![Build Status](https://travis-ci.org/dangvanthanh/deep-compare.svg?branch=master)](https://travis-ci.org/dangvanthanh/deep-compare)

> Deep comparison of objects in JavaScript


## Install

```
$ npm install --save deep-compare
```


## Usage

```js
var deepCompare = require('deep-compare');

deepCompare({name: 'Dang Thanh'}, {name: 'Dang Thanh'});
//=> true

deepCompare({city: 'Ha Noi', population: 7500000}, {city: 'Ho Chi Minh', population: 8000000});
//=> false
```


## API

### deepCompare(o1, o2)

#### o1

Type: `Objects`

The object is first.

#### o2

Type: `Objects`

The object is second.


## License

MIT © [Dang Van Thanh](http://dangthanh.org)

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