r/shittyprogramming • • Sep 06 '16

Convert a bool to bool

Post image
241 Upvotes

50 comments sorted by

View all comments

Show parent comments

2

u/[deleted] Sep 06 '16

You might be thinking of x != null which will match both null and undefined

1

u/CheshireSwift Sep 06 '16

That's the one. (I got carried away with my equals signs, now edited.)