logical-xor
Exclusive or, which returns true only when the inputs differ.
install
npm install logical-xor
usage
Pass in 1 parameter, and it evaluates the truthiness of it.
Pass in 2 parameters, and it returns true only if the inputs evaluate to different booleans.
Pass in more than 2 and it will walk down the chain, left to right, evaluating each set as it goes.
const xor = ; // returns false // returns true // returns true // return true
tests
npm test