object-deep-differ

Return the deep differnce between two objects

Usage no npm install needed!

<script type="module">
  import objectDeepDiffer from 'https://cdn.skypack.dev/object-deep-differ';
</script>

README

Object deep differ

Return the difference between the source object and the default object.

Installation

npm install --save object-deep-differ

Usage

const diff = require('object-deep-differ');

const defaultObj = {a:{b:{c:'hello'}}}

const sourceObj = {a:{d:{e:'hello world'}}}

console.log(diff(defaultObj, sourceObj)); // outputs {a:{d:{e:'hello world'}}}

Tests

npm test