1.0.6 • Published 7 years ago

diff-objects v1.0.6

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

diffObjects

function returning difference of two objects

example:

const object1 = { a: 1, b: 2, c: 3, };

const object2 = { a: 1, c: 4, d: 5, };

const result = diffObjects(object1, object2); / result = { added: { d: 5, }, saved: { a: 1, }, updated: { c: 4, }, deleted: { b: 2, }, }; /

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago