Folks, Given the following 2 Objects, what would be the best way to compare them, and return only the differences between them?
{ _id: 530797d8952e10129f97fde3,
Product: 'something',
Realm: [ 'something', 'something','foo' ],
Service: 'Node',
Owners: [ 'foo', 'something' ],
Project: 'something',
URLs:
[ { 'foo': [Object] },
{ 'foo': [Object] },
{ 'foo': [Object] } ] }
...
{ _id: 530797d8952e10129f97fde3,
Product: 'something',
Realm: [ 'something', 'something','foo' ],
Service: 'Node',
Owners: [ 'foo', 'something' ],
Project: 'something',
URLs:
[ { 'bar': [Object] },
{ 'foo': [Object] },
{ 'quux': [Object] } ] }
Should I loop through these and compare, or is there a pre-built module people use?
Thanks!