Function each

  • Iterator for each value of an array or object.

    Example

    for (const v of each(['a', 'b']) {
    console.log(v); //a, b
    }

    Type Parameters

    • T

    Parameters

    • object: {
          [s: string]: T;
      } | ArrayLike<T>

    Returns IterableIterator<T>

Generated using TypeDoc