Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

deep-equal-json

inspect-js42.6kMIT1.0.1

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

equality, equal, deep, compare, json

readme

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

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

v1.0.1 - 2024-12-11

Commits

  • [actions] split out node 10-20, and 20+ ed93a02
  • [Dev Deps] update @ljharb/eslint-config, auto-changelog, has-proto, has-symbols, npmignore, tape b2b470f
  • [Refactor] use call-bound directly 9382299
  • [Deps] update call-bind, object-is adaa4b0
  • [Tests] replace aud with npm audit da0152c
  • [Dev Deps] add missing peer dep df4bc02

v1.0.0 - 2023-06-05

Commits