Truthy and falsy values
June 7, 2015
JavaScript defines a list of specific values that are considered “falsy” because when coerced to a boolean, they become false.
Falsy
Every other value will become true when coerced to a boolean, and therofore can be assumed to be truthy.
Truthy
It’s important to remember that a non-boolean value only follows this “truthy”/”falsy” coercion if it’s actually coerced to a boolean.