Skip to content

Instantly share code, notes, and snippets.

@JustinTulloss
Created November 30, 2010 09:34
Show Gist options
  • Save JustinTulloss/721409 to your computer and use it in GitHub Desktop.
Save JustinTulloss/721409 to your computer and use it in GitHub Desktop.
How Boolean Objects behave in JS
!!(new Boolean(false)) => true
(new Boolean(false)) ? true : false => true
(new Boolean(false)) == false => true
(new Boolean(false)) === false => false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment