Team, I tried so much to get all the combinations possible from a dynamic choices using jQuery without success. for example I have the below collection extracted after user selection.
{
"color": [
"Black",
"White"
],
"size": [
"S",
"M"
],
"material": [
"Cotton",
"Leather"
]
}
What I want as result is all the possible combination like the below.
{
[
"Black", "S", "Cotton"
],
[
"Black", "M", "Cotton"
],
[
"Black", "S", "Leather"
],
[
"Black", "M", "Leather"
],
[
"White", "S", "Cotton"
],
[
"White", "M", "Cotton"
],
[
"White", "S", "Leather"
],
[
"White", "M", "Leather"
]
}