deep-equal-json

1.0.0 • Public • Published

deep-equal-json Version Badge

github actions coverage License Downloads

npm badge

deep-equal, but only for JSON-supported values.

Note that any results you get from values that do not round-trip through JSON.stringify and JSON.parse are explicitly not part of this API, and you must not rely on them.

Example

const assert = require('assert');
const deepEqual = require('deep-equal-json');

assert.equal(typeof deepEqual(a, b), 'boolean'); // `a` and `b` can be anything that roundtrips with JSON

Tests

Simply clone the repo, npm install, and run npm test

Package Sidebar

Install

npm i deep-equal-json

Weekly Downloads

4

Version

1.0.0

License

MIT

Unpacked Size

19.8 kB

Total Files

11

Last publish

Collaborators

  • ljharb