I have this array:
[[1, 3, 7][2, 1, 0][2, 5, 4][3, 5, 0][4, 2, 4][4, 5, 7][5, 3, 0][6, 3, 7]]
I want to have all possible combinations of arrays having two conditions:
My product should be responsive to different inputs of 3 value arrays, and in this case, it should look like this:
[
[[1, 3, 7][2, 1, 0][4, 2, 4]]
[[1, 3, 7][2, 5, 4][3, 5, 0]]
[[1, 3, 7][2, 5, 4][5, 3, 0]]
[[1, 3, 7][3, 5, 0][4, 2, 4]]
... and so on
]
Hope you could understand the issue and give some help.