JSPM

component-xor

0.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 60434
  • Score
    100M100P100Q148777F
  • License MIT

tiny xor utility function

Package Exports

  • component-xor

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (component-xor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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