Convert a number to a boolean

suggest change
Boolean(0) === false

Boolean(0) will convert the number 0 into a boolean false.

A shorter, but less clear, form:

!!0 === false

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents