Skip to content

Instantly share code, notes, and snippets.

@sethdavis512
Created September 20, 2017 13:51
Embed
What would you like to do?
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