# @jakejarrett/compare

> Minimal object comparison function

Latest version **1.0.0** (published 2017-07-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @jakejarrett/compare
pnpm add @jakejarrett/compare
yarn add @jakejarrett/compare
bun add @jakejarrett/compare
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-07-09 |
| First published | 2017-07-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jake Jarrett |
| Maintainers | jakejarrett |
| Keywords | Object comparison |

## Links

- npm: https://www.npmjs.com/package/@jakejarrett/compare
- npm.io page: https://npm.io/package/@jakejarrett/compare

## Recent versions

- 1.0.0 (latest) — 2017-07-09

## README

# Compare
* **Tiny** Unminified filesize is ~410 bytes
* **Easy to use** Simply call `compare(object, object)`

## API

### ES6
```js
import compare from '@jakejarrett/compare'

const firstObject = {
    hello: {
        yes: true,
        no: false
    },
    user: {
        name: 'jake',
        id: 0
    }
}

const secondObject = Object.assign({}, firstObject)

// true
compare(firstObject, secondObject)

secondObject.user.name = 'not jake'
secondObject.user.id = 1

// false
compare(firstObject, secondObject)

```

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