Skip to main content

equalityFn()

equalityFn<T>(a): (b) => (c) => boolean

Logical (Function Result) Equality (XNOR) (a(x) === b(x)).

Type Parameters

T

The type of the input value of the functions.

Parameters

a

(x) => unknown

The first function to compare the return of.

Returns

Function

Parameters

b

(x) => unknown

Returns

Function

Parameters

c

T

Returns

boolean

See

Remarks

pure function

Example

equalityFn(x => x % 2)(x => x % 3)(6);
// true