Skip to main content
Module

x/fae/xor.ts>xor

A functional module for Deno inspired from Ramda.
Latest
variable xor
import { xor } from "https://deno.land/x/fae@v1.1.1/xor.ts";

Exclusive Or - Returns true if one of the arguments is truthy and the other is falsy. Otherwise, it returns false.

 Fae.xor(true, true) //=> false
 Fae.xor(true, false) //=> true
 Fae.xor(false, true) //=> true
 Fae.xor(false, false) //=> false

type

Xor