• Creates a function that checks if any of the predicates return truthy when invoked with the arguments provided to the created function.

    Type Parameters

    • T
    • Result1
    • Result2

    Parameters

    • Rest...predicates: [((arg: T) => arg is Result1), ((arg: T) => arg is Result2)]

      The predicates to check.

    Returns ((arg: T) => arg is Result1 | Result2)

    Returns the new function.

  • Type Parameters

    • T

    Parameters

    • Rest...predicates: Many<((...args: T[]) => boolean)>[]

    Returns ((...args: T[]) => boolean)

      • (...args): boolean
      • Parameters

        • Rest...args: T[]

        Returns boolean