on
on<
A,B,C>(f,g): (a,b) =>C
Defined in: Composition/on.ts:13
Applies a projection to both arguments of a binary function before calling it. Most useful for building comparators and equality checks over projected values.
Type Parameters
Section titled “Type Parameters”A
B
C
Parameters
Section titled “Parameters”(b1, b2) => C
(a) => B
Returns
Section titled “Returns”(
a,b):C
Parameters
Section titled “Parameters”A
A
Returns
Section titled “Returns”C