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

    Function filterMap

    • Maps and filters in a single step: items for which fn returns null (or undefined) are dropped, all other results are yielded. The mapping function may be async; its result is awaited.

      Type Parameters

      • T
      • U

      Parameters

      • fn: (item: Awaited<T>) => null | U | Promise<U | null>

        Maps an item to a value to yield, or null/undefined to drop it.

      Returns PipeFn<T, Awaited<U>>

      A pipe that yields the non-nullish mapped values.