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

    ts.forEach(map)
    

    But also works with generators.

    Type Parameters

    • T

    Parameters

    • ts: Iterable<T>

      list of things

    • act: ((t) => void)

      function to do something with a thing

        • (t): void
        • Parameters

          • t: T

          Returns void

    Returns void

Generated using TypeDoc