• Filters the elements of an async-iterable sequence based on a predicate.

    Type Parameters

    • T

    • S

    Parameters

    • predicate: ((value, index) => value is S)

      A function to test each source element for a condition.

        • (value, index): value is S
        • Parameters

          • value: T
          • index: number

          Returns value is S

    • Optional thisArg: any

      Optional this for binding.

    Returns OperatorAsyncFunction<T, S>

    An operator which returns an async-iterable sequence that contains elements from the input sequence that satisfy the condition.

  • Filters the elements of an async-iterable sequence based on a predicate.

    Type Parameters

    • T

    Parameters

    • predicate: ((value, index) => boolean | Promise<boolean>)

      A function to test each source element for a condition.

        • (value, index): boolean | Promise<boolean>
        • Parameters

          • value: T
          • index: number

          Returns boolean | Promise<boolean>

    • Optional thisArg: any

      Optional this for binding.

    Returns OperatorAsyncFunction<T, T>

    An operator which returns an async-iterable sequence that contains elements from the input sequence that satisfy the condition.

Generated using TypeDoc