Skip to content

Instantly share code, notes, and snippets.

@Lodo4ka
Created February 28, 2020 14:57
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 Lodo4ka/f23f0b03a3eba56e0950d31dfa0c3722 to your computer and use it in GitHub Desktop.
Save Lodo4ka/f23f0b03a3eba56e0950d31dfa0c3722 to your computer and use it in GitHub Desktop.
compareObject(objOne, objTwo) {
return Object.keys(objTwo).every(
key => objOne.hasOwnProperty(key) && objOne[key] == objTwo[key]
);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment