Function toArray

  • Returns an array of values from an iterator.

    const data = await toArray(adsrIterable(opts, 10));
    

    Note: If the iterator is infinite, be sure to provide a limit via the options or the function will never return.

    Type Parameters

    • V

    Parameters

    Returns V[]