cartesianProduct ⇒ array
This function builds a cartesian product out of the given arrays
Kind: global constant
Returns: array - res An array with the cartesian product
| Param | Type | Description |
| a | array | An array of elements |
| b | array | An array of elements |
| ..c | array | further array of elements |