Created
February 28, 2020 14:57
-
-
Save Lodo4ka/f23f0b03a3eba56e0950d31dfa0c3722 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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