• Calls a defined callback function on each element of a list then returns individual elements also works with generators.

    Type Parameters

    • T

    • U

    Parameters

    • ts: Iterable<T>

      list of things

    • map: ((t) => Iterable<U>)

      function to convert a thing to a list of something else

        • (t): Iterable<U>
        • Parameters

          • t: T

          Returns Iterable<U>

    Returns Generator<U, void, undefined>

    Yields

    each individual mapped thing

Generated using TypeDoc