Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

exclusive-or

andineck5MIT1.0.1

Exclusive OR (XOR) as a function

xor, exclusive OR

readme

exclusive-or

Exclusive OR (XOR) as a function

install

npm install exclusive-or --save

use

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

xor(false, false) // -> false
xor(false, true)  // -> true
xor(true, false)  // -> true
xor(true, true)   // -> false