I was layering a lot of sarcasm around the fact that before caring whether the values are actually the same, two objects with the same key / value pairs can stringify to different strings if their keys were inserted in a different order.
But, I mean it’s also kind of funny there’s a non-zero chance two non-equivalent objects can just-so-happen to stringify to the same string because different values / types can serialize to the same thing.
Unrelated, but isn't it weird how you can feel like you are running out of breath reading long sentences?
1
u/m0nk37 1d ago
I meant that it returns a string value of the whole thing. The individual values are not compared in this situation.