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.

Leave a Reply

Your email address will not be published.