Get difference object from two objects in deep compare
// use npm
npm i --save deep-difference
// use yarn
yarn add deep-difference
// es6
import deepDifference from 'deep-difference';
const compare = { foo: "foo", bar: { abc: "abc" } }
const compareWith = { foo: "foo", bar: { abc: "cde" } }
const result = deepDifference(compare, compareWith)
// the reulst should be { bar: { abc: "abc" } }
npm run test
ISC
deep difference