The result iterator has a subset of the non-final values from the baseIterator --- those for which pred(value) was truthy. The result has the same termination as the baseIterator -- the same completion value or failure reason.

  • Type Parameters

    • T

    Parameters

    • baseIterable: Iterable<T, any, any>
    • pred: ((value: T) => boolean)
        • (value): boolean
        • Parameters

          • value: T

          Returns boolean

    Returns Iterable<T, any, any>