@cprecioso/async-iterable-helpers
    Preparing search index...

    Function filter

    • Keeps only the items for which fn returns a truthy value. The predicate may be async; its result is awaited.

      Type Parameters

      • T

      Parameters

      • fn: (item: Awaited<T>) => false | true | Promise<boolean>

        Predicate deciding whether to keep an item.

      Returns PipeFn<T, Awaited<T>>

      A pipe that yields the items passing the predicate.