Function fromArray

  • Yield values from array, one at a time. Use interval to add time between each item. The first item is yielded without delay.

    Type Parameters

    • V

    Parameters

    • array: V[]

      Array of values

    • interval: Interval = 1

      Interval (defaults: 1ms)

    Returns AsyncGenerator<V>