• Similar to Array.prototype.forEach but for iterables

    Type Parameters

    • T

    Parameters

    • itr: Iterable<T>

      Iterate over the items in this iterable

    • fn: ((item, index) => any)

      Iterator function

        • (item, index): any
        • Parameters

          • item: T
          • index: number

          Returns any

    Returns void