component-xor

tiny xor utility function

MIT 2 个版本
xor
安装
npm install component-xor
yarn add component-xor
pnpm add component-xor
bun add component-xor
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

版本列表
0.0.4 2015-03-31
0.0.3 2014-02-11