Function filterMap

  • Maps and filters the input iterator in the same iteratee function.

    Type Parameters

    Parameters

    • arg: T
    • iteratee: Iteratee<IterSource<T>, R>

      A function that maps each value in this iterator to a new value and also filters out any that return a nullish value.

    Returns IterableIterator<NonNullable<R>>

  • Type Parameters

    Parameters

    Returns ((arg: T) => IterableIterator<NonNullable<R>>)

      • (arg): IterableIterator<NonNullable<R>>
      • Parameters

        • arg: T

        Returns IterableIterator<NonNullable<R>>