Hello,
Is there a way to get all combinations of an array of 3 items, whose value is 0 or 1 ?
For instance, for an array of 3 items, it should generate the arrays below :
[ [0,0,0], [1,0,0], [0,1,0], [0,0,1], [1,1,0], [1,0,1], [0,1,1], [1,1,1] ];
Many thanks,
Christophe