JSON.equals(x, y)

This discussion inspired me to create this post - Native deep-clone algorithm? - I don't directly talk about deep equality in there - I was originally going to, but realized I was already getting too long-winded, so decided not to go there.

But I do agree that the language ought to have some sort of deep comparison algorithm provided, as it is a fairly common task, and it takes a fair amount of boilerplate to do by hand.

1 Like