component-xor

tiny xor utility function

npm install component-xor
3 downloads in the last month

xor

tiny xor utility function

Installation

Install with component(1):

$ component install component/xor

Or with node.js:

$ npm install component/xor

API

xor(bool, bool)

XOR two boolean values.

xor(true, true) // false
xor(true, false) // true
xor(false, true) // true
xor(false, false) // false

Test

npm install
make test

License

MIT

npm loves you