Skip to content

Instantly share code, notes, and snippets.

@sethdavis512
Created September 20, 2017 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sethdavis512/5763c024229ef89d304361364eaea43d to your computer and use it in GitHub Desktop.
Save sethdavis512/5763c024229ef89d304361364eaea43d to your computer and use it in GitHub Desktop.
Lodash - Find difference between objects
_.reduce(obj1, (result, value, key) => {
const variantValue = obj2[key];
return _.isEqual(value, variantValue) ? result : result.concat(value);
}, []);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment