Y
Hacker News
new
|
ask
|
show
|
jobs
by
SamBam
855 days ago
That doesn't test if it's null or undefined, that just tests if it's not falsy.
x = 0; !x → true
y = ""; !y → true
z = null; !z → true