Created
August 28, 2016 12:13
-
-
Save harryadel/37829af90aab86dbd47c68ea9f4e2d34 to your computer and use it in GitHub Desktop.
Revisions
-
Hadouken created this gist
Aug 28, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ /* My answer for exercise 'Deep comparison' in Eloquent JavaScript Second Edition Chapter 4 Data Structures: Objects and Arrays */ function deepEqual(o1, o2) { if(JSON.stringify(o1) === JSON.stringify(o2)) { return true; } else { return false; } }