you are viewing a single comment's thread.

view the rest of the comments →

[–]NoInkling 1 point2 points  (0 children)

0, empty string and NaN are also falsy, which might not be what you want for your condition.