equalityFn()
equalityFn<
T>(a): (b) => (c) =>boolean
Logical (Function Result) Equality (XNOR) (a(x) === b(x)).
Type Parameters
T
T
The type of the input value of the functions.
Parameters
a
(x) => unknown
The first function to compare the return of.
Returns
(
b): (c) =>boolean
Parameters
b
(x) => unknown
Returns
(
c):boolean
Parameters
c
T
Returns
boolean
See
Remarks
pure function
Example
equalityFn(x => x % 2)(x => x % 3)(6);
// true