Skip to main content
Module

x/rambda/source/xor.js

Faster and smaller alternative to Ramda
Go to Latest
File
export function xor(a, b) { if (arguments.length === 1) return _b => xor(a, _b)
return (Boolean(a) && !b) || (Boolean(b) && !a)}