JavaScript WTFs are kind of tired, but this one is new to me and it feels deeper than usual: In JavaScript, `==` is an equality operator, but it is not transitive! false == [0] //=> true [0] == false //=> true [0] == [0] //=>false!!!!! (via https://www.reddit.com/r/javascript/comments/bgv0su/if_either_value_aka_side_in_a_comparison_could_be/elo3mo7/ …)
-
-
Replying to @raganwald
It's actually a coercion operator with post-coercion equality tests.
2 replies 0 retweets 7 likes -
Replying to @slightlylate @raganwald
This is my new favorite “well, actually”
2 replies 0 retweets 3 likes -
Replying to @DasSurma @slightlylate
Keep reading the thread, it's Well, actually" all the way down...
1 reply 0 retweets 1 like -
Replying to @raganwald @DasSurma
...all offered in jest, in case it wasn't clear!
1 reply 0 retweets 1 like -
I should have used
1 reply 0 retweets 1 like
Me too! Apologies.
11:21 AM - 24 Apr 2019
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.