UNPKG

pragmatic-fp-ts

Version:

Opinionated functional programming library with easy use in mind

10 lines (9 loc) 250 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.xor = void 0; function xor(a, b) { if (arguments.length === 1) return (_b) => xor(a, _b); return !!((a ? 1 : 0) ^ (b ? 1 : 0)); } exports.xor = xor;