Rest
...fns: ((...args) => boolean)[]functions to combine
a function that returns true if all of the input functions return true
Rest
...args: Argsconst isEven = (n: number) => n % 2 === 0
const isPositive = (n: number) => n > 0
const isPositiveEven = and(isEven, isPositive)
isPositiveEven(2) // returns true
Generated using TypeDoc
AND operator for functions.