yeah, bitch
Discussion
π JavaScript.
JavaScript ππ
Not the same object
π€·ββοΈ
Good, cause JS does a reference comparison
I understand why it doesn't work
but this is clearly not what a developer intends to do
and javascript is not a low-level language where you must work around physical constraints
If you see a dev not understanding JS comparison operators, kindly point them to this superb free book:
https://github.com/getify/You-Dont-Know-JS/blob/1st-ed/README.md
π
JSON.stringify({}) === JSON.stringify({})
This is completely correct.
that's why i am a c++ developer, our world is complicated, but it is straight forward complicated.