JavaScript - Falsy Values

javascript

// JavaScript - Falsy values:
false, null, undefined, '', 0, NaN

All other values are truthy, including true, the string 'false', and empty objects.
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License