Not the same object
Discussion
๐คทโโ๏ธ
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({})