Created
January 21, 2019 02:37
-
-
Save ezirmusitua/bc20eb0a8b5862f6623cc474cafcf9fc to your computer and use it in GitHub Desktop.
[Compare object] compare object in javascript #javascript #node #object
This file contains hidden or 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
function isEqual(obj1, obj2) { | |
return JSON.stringify(obj1) === JSON.stringify(obj2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment