Skip to content

Instantly share code, notes, and snippets.

@tytskyi
Forked from sospedra/difference-object.js
Created July 12, 2017 22:37
Show Gist options
  • Save tytskyi/bcd72cb7914e56eb89be1099805a2aef to your computer and use it in GitHub Desktop.
Save tytskyi/bcd72cb7914e56eb89be1099805a2aef to your computer and use it in GitHub Desktop.
Lodash objects difference
_.fromPairs(_.differenceBy(_.entries(original), _.entries(target), ([key, val]) => val))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment