Type alias for functions that given a value returns true or false.
// All the following are valid predicate examples
const fn1 = (a: number) => a % 2 === 0
const fn2 = (a: string) => a.length === 3
const fn3 = (_a: any) => true
Generated using TypeDoc
any type