andFn()
andFn<
T
,A
>(a
): <B
>(b
) => (c
) =>boolean
Logical (a(x) && b(x))
. Logical (Function Result) Conjunction
Type Parameters
• T
• A
Parameters
a
(x
) => A
The first function to compare the return of.
Returns
Function
Type Parameters
• B
Parameters
b
(y
) => B
Returns
Function
Parameters
c
T
Returns
boolean
See
https://en.wikipedia.org/wiki/Logical_conjunction
Remarks
pure function
Example
andFn((x) => x > 0)((x) => x < 10)(5);
// true