Returns the cartesian product of the given arrays.
cartesianProduct([1, 2], ['a', 'b', 'c'], [true, false])// -> [[1, 'a', true], [1, 'a', false], [1, 'b', true], [1, 'b', false], [1, 'c', true], [1, 'c', false], [2, 'a', true], [2, 'a', false], [2, 'b', true], [2, 'b', false], [2, 'c', true], [2, 'c', false]] Copy
cartesianProduct([1, 2], ['a', 'b', 'c'], [true, false])// -> [[1, 'a', true], [1, 'a', false], [1, 'b', true], [1, 'b', false], [1, 'c', true], [1, 'c', false], [2, 'a', true], [2, 'a', false], [2, 'b', true], [2, 'b', false], [2, 'c', true], [2, 'c', false]]
Returns the cartesian product of the given arrays.