deep-difference
v1.0.1
Published
Get deep difference object from two object
Downloads
4
Maintainers
Readme
deep-difference
Get difference object from two objects in deep compare
Usage
// 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" } }
Test
npm run test
License
ISC
Keywords
deep difference