UNPKG

@extra-array/cartesian-product

Version:

Lists cartesian product of arrays.

11 lines (10 loc) 359 B
declare module "@extra-array/cartesian-product" { import type { mapFn } from "./_types"; /** * Lists cartesian product of arrays. * @param xs arrays * @param fm map function (vs, i) */ declare function cartesianProduct<T, U = T>(xs: T[][], fm?: mapFn<T[], T[] | U>): (T[] | U)[]; export = cartesianProduct; //# sourceMappingURL=cartesianProduct.d.ts.map}