component-xor
tiny xor utility function
Last updated 6 years ago by mattmueller .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install component-xor 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.4                                ...           latest (6 years ago)

2 Versions

  • 0.0.4                                ...           6 years ago
  • 0.0.3                                ...           7 years ago

Copyright 2014 - 2016 © taobao.org |