component-xor

tiny xor utility function

Usage no npm install needed!

<script type="module">
  import componentXor from 'https://cdn.skypack.dev/component-xor';
</script>

README

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