Skip to content

Instantly share code, notes, and snippets.

@kswlee
Created March 7, 2014 16:46
Show Gist options
  • Save kswlee/9415031 to your computer and use it in GitHub Desktop.
Save kswlee/9415031 to your computer and use it in GitHub Desktop.
badjs#1
if (x && y) { … } // bad
if (!(!x || !y)) { … } // good
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment