3 ms·
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
by SamBam 3y 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