# same-data

> Deep equal with no deps and only for 'data' objects, ie basic objects, arrays, primitives and typed arrays

Latest version **1.0.0** (published 2022-10-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install same-data
pnpm add same-data
yarn add same-data
bun add same-data
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-10-05 |
| First published | 2022-10-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18 |
| Author | Mathias Buus |
| Maintainers | mafintosh |

## Links

- npm: https://www.npmjs.com/package/same-data
- Repository: https://github.com/mafintosh/same-data
- Issues: https://github.com/mafintosh/same-data/issues
- npm.io page: https://npm.io/package/same-data

## Recent versions

- 1.0.0 (latest) — 2022-10-05
- 0.0.0 — 2022-10-05

## README

# same-data

Deep equal with no deps and only for "data" objects, ie basic objects, arrays, primitives and typed arrays

```
npm install same-data
```

Designed to be simple and for data. Does NOT do anything magic for functions, symbols, recursive objects

## Usage

``` js
const sameData = require('same-data')

console.log(sameData(1, 1)) // true
console.log(sameData(1, 2)) // false
console.log(sameData({ foo: 1 }, { foo: 1 })) // true
console.log(sameData({ foo: 1 }, { foo: 1, bar: true })) // false
console.log(sameData({ foo: 1, nested: { a: 1 } }, { foo: 1, nested: { a: 1 } })) // true
console.log(sameData([{ a: 1 }, { b: 1 }], [{ a: 1 }, { b: 1 }])) // true
```

## License

MIT

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