2 ms·
false, 0, null, undefined, "", NaN Everything else is truthy. If you think about the original use of JS as mostly input validation, the values above make tota
by tracker1 7y ago
false, 0, null, undefined, "", NaN
Everything else is truthy. If you think about the original use of JS as mostly input validation, the values above make total sense.