Node/browser exclusive or function.
Implements the logical exclusive or function in JS.
npm install x-or
var xor = require('x-or');
xor(true, false) === true;
xor(false, true) === true;
xor(true, true) === false;
xor(false, false) === false;
Node/browser exclusive or function.
Implements the logical exclusive or function in JS.
npm install x-or
var xor = require('x-or');
xor(true, false) === true;
xor(false, true) === true;
xor(true, true) === false;
xor(false, false) === false;