Skip to content

Instantly share code, notes, and snippets.

@rjz
Created March 14, 2014 00:33
Show Gist options
  • Save rjz/9540026 to your computer and use it in GitHub Desktop.
Save rjz/9540026 to your computer and use it in GitHub Desktop.
CoffeeScript ternaries
# Docco must have missed the `0&+` operator...
e = ['truthiness', 'falsitude'][0&+false]
console.log e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment