npm.io
1.1.0 • Published 9 years ago

x-or

Licence
ISC
Version
1.1.0
Deps
0
Vulns
0
Weekly
0

node-x-or

Node/browser exclusive or function.

What's this?

Implements the logical exclusive or function in JS.

Installation

npm install x-or

Usage

var xor = require('x-or');

xor(true, false) === true;
xor(false, true) === true;

xor(true, true) === false;
xor(false, false) === false;