# deep-strict-equal

> Test for deep equality - Node.js `assert.deepStrictEqual()` algorithm as a standalone module

Latest version **0.3.0** (published 2021-09-17) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install deep-strict-equal
pnpm add deep-strict-equal
yarn add deep-strict-equal
bun add deep-strict-equal
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2021-09-17 |
| First published | 2015-09-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 1 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 23 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | builtin, core, ponyfill, polyfill, shim, deep, strict, equal, equality, eq, same, algorithm |

## Links

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

## Dependencies (1)

- [core-assert](https://npm.io/package/core-assert.md) ^0.2.0

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 0.3.0 (latest) — 2021-09-17
- 0.2.0 — 2016-06-16
- 0.1.0 — 2015-09-28

## README

This package is deprecated as it's too much effort to keep it in sync with the Node.js implementation.

---

# deep-strict-equal

> Test for deep equality - Node.js [`assert.deepStrictEqual()`](https://nodejs.org/api/assert.html#assert_assert_deepstrictequal_actual_expected_message) algorithm as a standalone module

*Issues and improvements should be done in [Node.js](https://github.com/nodejs/node/issues) first.*


## Install

```
$ npm install --save deep-strict-equal
```


## Usage

```js
const deepStrictEqual = require('deep-strict-equal');

deepStrictEqual({foo: {bar: [1, 2]}}, {foo: {bar: [1, 2]}});
//=> true

deepStrictEqual({foo: {bar: [1, 2]}}, {foo: {bar: [1, 4]}});
//=> false

deepStrictEqual({foo: {bar: 1}}, {foo: {bar: 1}});
//=> true

deepStrictEqual({foo: {bar: 1}}, {foo: {bar: '1'}});
//=> false
```


## License

MIT © [Sindre Sorhus](http://sindresorhus.com)

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