UNPKG

lodash.product

Version:

Calculates the Cartesian product between multiple collections.

8 lines (6 loc) 192 B
type AnyCollection<T> = Iterable<T> | ArrayLike<T> | Record<any, T>; declare module _ { interface LoDashStatic { product<T>(...collections: Array<AnyCollection<T>>): Array<Array<T>>; } }