Function toArray

  • Converts an iterator or iterable into an array by iterating over all it's values and collecting them.

    Type Parameters

    Parameters

    • iteratorOrIterable: T

    Returns IterSource<T>[]