es-stl - v3.0.3
    Preparing search index...

    Type Alias Predicate<T>

    Predicate: (value: T) => boolean

    Function that tests whether a value satisfies a condition.

    Type Parameters

    • T

      Tested value type.

    Type Declaration

      • (value: T): boolean
      • Parameters

        • value: T

        Returns boolean

    const isPositive: Predicate<number> = (value) => value > 0;