Comparison operations
suggest changeWhen using boolean coercion, the following values are considered “falsy”:
false
0
""
(empty string)null
undefined
NaN
(not a number, e.g.0/0
)document.all
¹ (browser context)
Everything else is considered “truthy”.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents