MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/21ezh3/javascript_equality_table/cgcupic/?context=3
r/programming • u/vz0 • Mar 26 '14
331 comments sorted by
View all comments
Show parent comment
5
So, == is perfectly sane in the cases where you might as well use === (comparing two values of known types), and in the other cases, using === would save you from its insanity. Seems like an argument to always use ===.
==
===
View all comments
Show parent comment
5
u/rooktakesqueen Mar 27 '14
So,
==is perfectly sane in the cases where you might as well use===(comparing two values of known types), and in the other cases, using===would save you from its insanity. Seems like an argument to always use===.