= {b:2, a:1} and I need to know if they are equals. But JSON.stringify(x) === JSON.stringify(y) return false. someone can help me?
use pls Object.is(val1, val2)
Do you really need a deep equals algorithm? What are the real objects you're comparing?
this is a non trivial problem, best to grab a library and don't worry about it
Обсуждают сегодня