Function negatePred

  • Adapt a predicate into an identical predicate that negates its result.

    Type Parameters

    • T

    • T1

    Parameters

    • f: ((val) => val is T1)
        • (val): val is T1
        • Parameters

          • val: T

          Returns val is T1

    Returns ((val) => val is Exclude<T, T1>)

      • (val): val is Exclude<T, T1>
      • Parameters

        • val: T

        Returns val is Exclude<T, T1>

  • Type Parameters

    • TArgs extends unknown[]

    Parameters

    • f: ((...args) => boolean)
        • (...args): boolean
        • Parameters

          • Rest ...args: TArgs

          Returns boolean

    Returns ((...args) => boolean)

      • (...args): boolean
      • Parameters

        • Rest ...args: TArgs

        Returns boolean

Generated using TypeDoc