# decomparefy

> Deep data comparisons

Latest version **1.0.3** (published 2021-01-10) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2021-01-10 |
| First published | 2020-11-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Krzysztof Czaplejewicz |
| Maintainers | czaplej26 |
| Keywords | react, deep-compare, compare, equality, equal |

## Links

- npm: https://www.npmjs.com/package/decomparefy
- Repository: https://github.com/czaplej/czaplej
- Homepage: https://github.com/czaplej/czaplej/tree/master/packages/decomparefy
- npm.io page: https://npm.io/package/decomparefy

## Recent versions

- 1.0.3 (latest) — 2021-01-10
- 1.0.2 — 2020-11-27
- 1.0.1 — 2020-11-27
- 1.0.0 — 2020-11-25

## README

# decomparefy

[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/czaplej/decomparefy/blob/master/LICENSE.md)
[![npm latest package](https://img.shields.io/npm/v/decomparefy/latest.svg)](https://www.npmjs.com/package/decomparefy)

Deep data compare

## Installation

#### npm

```bash
npm install --save  decomparefy
```

#### yarn

```bash
yarn add  decomparefy
```

## Usage

```ts
import { isEqual } from 'decomparefy';

isEqual(1, 1); //=> true
isEqual({}, {}); //=> true
isEqual('foo', 'foo'); //=> true
isEqual([1, 2, 3], [1, 2, 3]); //=> true
isEqual(() => {}, () => {}); //=> true
isEqual(/foo/, /foo/); //=> true
isEqual(null, null); //=> true
isEqual(NaN, NaN); //=> true
isEqual([], []); //=> true
isEqual(
  [{ a:1 }, [{ b:{ c:[1] } }]],
  [{ a:1 }, [{ b:{ c:[1] } }]]
); //=> true

isEqual(1, '1'); //=> false
isEqual(null, undefined); //=> false
isEqual({ a:1, b:[2,3] }, { a:1, b:[2,5] }); //=> false
isEqual(/foo/i, /bar/g); //=> false
```

## License

The package is Open Source Software released under the [MIT licensed](LICENSE.md).

This library was generated with [Nx](https://nx.dev).

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