@metreeca/pipe - v0.9.11
    Preparing search index...

    Function filter

    • Creates a task filtering stream items based on a predicate.

      Items are processed sequentially and output order is preserved.

      Type Parameters

      • V

        The type of items in the stream

      Parameters

      • predicate: (item: V) => boolean | Promise<boolean>

        The function to test each item

      Returns Task<V>

      A task that filters items based on the predicate