it
    Preparing search index...

    Function default

    • Invokes the passed function for each item in an iterable

      Type Parameters

      • T

      Parameters

      Returns AsyncGenerator<T, void, undefined>

    • Invokes the passed function for each item in an iterable

      Type Parameters

      • T

      Parameters

      • source: Iterable<T>
      • fn: (thing: T, index: number) => void

      Returns Generator<T, void, undefined>

    • Invokes the passed function for each item in an iterable

      Type Parameters

      • T

      Parameters

      • source: Iterable<T, any, any> | AsyncIterable<T, any, any>
      • fn: (thing: T, index: number) => void | Promise<void>

      Returns AsyncGenerator<T, void, undefined>