UNPKG

iteragain

Version:

Javascript Iterable/Iterator/Generator-function utilities.

10 lines 514 B
import type { IteratorOrIterable } from './types'; /** * Returns the cartesian product of the input `iterators`. * @param iterators Other iterators. * @param repeat Optional number of times to repeat the input `iterators`. * @see https://docs.python.org/3/library/itertools.html#itertools.product for more info, as it does the same. */ export declare function product<T>(iterators: IteratorOrIterable<T>[], repeat?: number): IterableIterator<T[]>; export default product; //# sourceMappingURL=product.d.ts.map