common-stuff
    Preparing search index...

    Function forEach

    • Iterates each element of an iterable structure, calling fn for side effects.

      Returns Promise<void> for AsyncIterable inputs and when fn returns a Promise, void otherwise. Sequential ordering is preserved with async callbacks.

      Type Parameters

      • V

      Parameters

      • input: V[]
      • fn: (value: V, index: number) => Promise<void>

      Returns Promise<void>

    • Iterates each element of an iterable structure, calling fn for side effects.

      Returns Promise<void> for AsyncIterable inputs and when fn returns a Promise, void otherwise. Sequential ordering is preserved with async callbacks.

      Type Parameters

      • V

      Parameters

      • input: V[]
      • fn: (value: V, index: number) => void

      Returns void

    • Iterates each element of an iterable structure, calling fn for side effects.

      Returns Promise<void> for AsyncIterable inputs and when fn returns a Promise, void otherwise. Sequential ordering is preserved with async callbacks.

      Type Parameters

      • K
      • V

      Parameters

      • input: Map<K, V>
      • fn: (value: [K, V], index: number) => Promise<void>

      Returns Promise<void>

    • Iterates each element of an iterable structure, calling fn for side effects.

      Returns Promise<void> for AsyncIterable inputs and when fn returns a Promise, void otherwise. Sequential ordering is preserved with async callbacks.

      Type Parameters

      • K
      • V

      Parameters

      • input: Map<K, V>
      • fn: (value: [K, V], index: number) => void

      Returns void

    • Iterates each element of an iterable structure, calling fn for side effects.

      Returns Promise<void> for AsyncIterable inputs and when fn returns a Promise, void otherwise. Sequential ordering is preserved with async callbacks.

      Type Parameters

      • T

      Parameters

      • input: Set<T>
      • fn: (value: T, index: number) => Promise<void>

      Returns Promise<void>

    • Iterates each element of an iterable structure, calling fn for side effects.

      Returns Promise<void> for AsyncIterable inputs and when fn returns a Promise, void otherwise. Sequential ordering is preserved with async callbacks.

      Type Parameters

      • T

      Parameters

      • input: Set<T>
      • fn: (value: T, index: number) => void

      Returns void

    • Iterates each element of an iterable structure, calling fn for side effects.

      Returns Promise<void> for AsyncIterable inputs and when fn returns a Promise, void otherwise. Sequential ordering is preserved with async callbacks.

      Type Parameters

      • T

      Parameters

      • input: AsyncIterable<T>
      • fn: (value: T, index: number) => void | Promise<void>

      Returns Promise<void>

    • Iterates each element of an iterable structure, calling fn for side effects.

      Returns Promise<void> for AsyncIterable inputs and when fn returns a Promise, void otherwise. Sequential ordering is preserved with async callbacks.

      Type Parameters

      • T

      Parameters

      • input: Iterable<T>
      • fn: (value: T, index: number) => Promise<void>

      Returns Promise<void>

    • Iterates each element of an iterable structure, calling fn for side effects.

      Returns Promise<void> for AsyncIterable inputs and when fn returns a Promise, void otherwise. Sequential ordering is preserved with async callbacks.

      Type Parameters

      • T

      Parameters

      • input: Iterable<T>
      • fn: (value: T, index: number) => void

      Returns void

    • Iterates each element of an iterable structure, calling fn for side effects.

      Returns Promise<void> for AsyncIterable inputs and when fn returns a Promise, void otherwise. Sequential ordering is preserved with async callbacks.

      Type Parameters

      • K extends PropertyKey
      • V

      Parameters

      • input: Record<K, V>
      • fn: (value: [K, V], index: number) => Promise<void>

      Returns Promise<void>

    • Iterates each element of an iterable structure, calling fn for side effects.

      Returns Promise<void> for AsyncIterable inputs and when fn returns a Promise, void otherwise. Sequential ordering is preserved with async callbacks.

      Type Parameters

      • K extends PropertyKey
      • V

      Parameters

      • input: Record<K, V>
      • fn: (value: [K, V], index: number) => void

      Returns void