Generate array combinations,
each of which is of the length of the number of arrays passed (groups)
Parameters:
Name | Type | Description |
---|---|---|
arrays |
Array.<Array.<T>>
|
An array of arrays containing each options (e.g. option groups) e.g. [['a','b'], ['1', '2'], ['@', '#']] |
An array of arrays containing each combinations generated by the passed arrays.
e.g. [['a', '1', '@'], ['a', '1', '#'], ['a', '2', '@']...]
Array.<Array.<T>>