Predicate

A type which represents a function that returns a Boolean value.

const isGreaterThanTen: Predicate = (num: number) => num > 10;
isGreaterThanTen(2); // false
isGreaterThanTen(20); // true

In this article

Not finding the help you need?