UNPKG

295 BTypeScriptView Raw
1declare module "@extra-array/permutations" {
2/**
3 * Lists all possible permutations.
4 * @param x an array
5 * @param n number of values (-1 => any)
6 */
7declare function permutations<T>(x: T[], n?: number): IterableIterator<T[]>;
8export = permutations;
9//# sourceMappingURL=permutations.d.ts.map}