Skip to content

js truthy

Rafael J. Rodriguez edited this page · 5 revisions
Clone this wiki locally

A truthy value is a value that translates to true when evaluated in a Boolean context.

All values are truthy unless they are defined as falsy (i.e. except for false, 0, "", null, undefined and NaN).

See also: falsy | MDN

Something went wrong with that request. Please try again.