MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/shittyprogramming/comments/51ef6r/convert_a_bool_to_bool/d7c0uh7
r/shittyprogramming • u/ab7a71 • Sep 06 '16
50 comments sorted by
View all comments
Show parent comments
2
You might be thinking of x != null which will match both null and undefined
x != null
null
undefined
1 u/CheshireSwift Sep 06 '16 That's the one. (I got carried away with my equals signs, now edited.)
1
That's the one. (I got carried away with my equals signs, now edited.)
2
u/[deleted] Sep 06 '16
You might be thinking of
x != nullwhich will match bothnullandundefined