xorFn()
xorFn<
T
>(a
): (b
) => (c
) =>boolean
Logical (a(x) ^ b(x))
. Exclusive (Function Result) Disjunction.
Type Parameters
• T
Parameters
a
(x
) => unknown
The first function to bitwise XOR the return of.
Returns
Function
Parameters
b
(x
) => unknown
Returns
Function
Parameters
c
T
Returns
boolean
See
https://en.wikipedia.org/wiki/Exclusive_or
Remarks
pure function
Example
xorFn(s => s.trim())(s => s.trimEnd())('foo bar ');
// false