Skip to content

Instantly share code, notes, and snippets.

@soulcutter
Created February 8, 2016 23:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soulcutter/b50af8371e1ab88f56de to your computer and use it in GitHub Desktop.
Save soulcutter/b50af8371e1ab88f56de to your computer and use it in GitHub Desktop.
What am I xorring?
ternary = foo ? !bar : bar
xor = !!(foo ^ bar)
neq = foo != bar
foo | bar | xor | ternary | neq
-------------------------------------
true | true | false | false | false
false | false | false | false | false
true | false | true | true | true
false | true | true | true | true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment