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