In JavaScript, "falsy" is null, undefined, 0, '', or false. Everything else is truthy, including empty objects, strings with only whitespace.
Many bugs have been caused by incorrect uses of truthy and falsy.
Many bugs have been caused by incorrect uses of truthy and falsy.