Package Exports
- deep-strict-equal
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (deep-strict-equal) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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()
algorithm as a standalone module
Issues and improvements should be done in Node.js first.
Install
$ npm install --save deep-strict-equal
Usage
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