• Filters the elements of an 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 OperatorFunction<T, S>

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

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

    Type Parameters

    • T

    Parameters

    • predicate: ((value, index) => boolean)

      A function to test each source element for a condition.

        • (value, index): boolean
        • Parameters

          • value: T
          • index: number

          Returns boolean

    • Optional thisArg: any

      Optional this for binding.

    Returns OperatorFunction<T, T>

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

Generated using TypeDoc