UNPKG

iteragain

Version:

Javascript Iterable/Iterator/Generator-function utilities.

5 lines 341 B
import type { IterSource, IteratorOrIterable } from './types'; /** Converts an iterator or iterable into an array by iterating over all it's values and collecting them. */ export declare function toArray<T extends IteratorOrIterable<any>>(iteratorOrIterable: T): IterSource<T>[]; export default toArray; //# sourceMappingURL=toArray.d.ts.map