Skip to content

Instantly share code, notes, and snippets.

@kontur
Created January 15, 2014 12:35
Show Gist options
  • Save kontur/8435422 to your computer and use it in GitHub Desktop.
Save kontur/8435422 to your computer and use it in GitHub Desktop.
javascript strict boolean type casting
var something = something === true; // something will always be 'false' except for explicit 'true'
var something = something !== false; // something will always be 'true' except for explicit 'false'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment