UNPKG

iteragain

Version:

Javascript Iterable/Iterator/Generator-function utilities.

8 lines 383 B
import type { IterSource, IteratorOrIterable } from './types'; /** * Collects all values from the input iterator, then shuffles the order of it's values. * @param seed A seed between 0 and 1. */ export declare function shuffle<T extends IteratorOrIterable<any>>(arg: T, seed?: number): IterableIterator<IterSource<T>>; export default shuffle; //# sourceMappingURL=shuffle.d.ts.map