Coding Interview Problem: checking if two things are equal

It is pretty straightforward to check if two values are equal right? Just compare them!

value1 === value2

But what if value1 and value2 are two objects? What if they have nested properties? What if these properties are arrays? Well, then you must use recursion right?

I once got asked this problem in a Coding Interview Problem and wanted to share my solution.

--

--

David Armendáriz
0 Followers

Mathematician & Software Developer @ eVisit