๐Ÿคทโ€โ™‚๏ธ

https://void.cat/d/Th4HcCDhZhCearHr9ryRTz.webp

Reply to this note

Please Login to reply.

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

Now do NaN === NaN ๐Ÿ˜

my computer exploded and it's all your fault

๐Ÿ˜

Hahaha

This guy, officer ๐Ÿ‘†

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({})