1.0.1 • Published 5 years ago

deep-difference v1.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

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