UNPKG

iteragain

Version:

Javascript Iterable/Iterator/Generator-function utilities.

8 lines 412 B
import type { IteratorOrIterable } from './types'; /** * Reverses the input iterator's order. Note that in order to reverse, it will attempt to iterate fully once, which * could cause significant memory usage. So because of this, only use on finite iterators. */ export declare function reverse<T>(arg: IteratorOrIterable<T>): IterableIterator<T>; export default reverse; //# sourceMappingURL=reverse.d.ts.map