Skip to content

Instantly share code, notes, and snippets.

@finreinhard
Created July 21, 2020 12:20
Show Gist options
  • Save finreinhard/fee8bfe55369d556bed205ec046b3500 to your computer and use it in GitHub Desktop.
Save finreinhard/fee8bfe55369d556bed205ec046b3500 to your computer and use it in GitHub Desktop.
const whatsDifferent = (old: any, check: any) => Object.entries(old)
.filter(entry => entry[1] !== check[entry[0]])
.map(entry => entry[0]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment