Implementing a deep comparison between JavaScript objects


The == operator compares objects by identity. But sometimes, you would prefer to compare the values of their actual properties.

— (Taken from Eloquent JavaScript Ch4)

I spent a bit of time figuring this one out, and finally have a working solution.

https://gist.github.com/magician11/d0c979037a69555b2aa4


Leave a Reply

Your email address will not be published.