• Calls a defined callback function on each element of a list.

    ts.map(map)
    

    But also works with generators.

    Type Parameters

    • T

    • U

    Parameters

    • ts: Iterable<T>

      list of things

    • map: ((t) => U)

      function to convert a thing to something

        • (t): U
        • Parameters

          • t: T

          Returns U

    Returns IterableIterator<U>

    Yields

    each mapped thing

Generated using TypeDoc