Is it possible to list out every single variation possible with some kind of filtering or mapping method? I'm using a small array/sample size, but assume the sizes vary. Focusing on 3 arrays and listing out each variation.
Thank you,
// pseudo-code!
var breakfast = ["eggs", "cereal" , "muffin"];
var lunch = ["soup", "burrito"];
var dinner =["salad", "steak", "ice cream"];
// outputs
eggs,soup,salad
eggs,soup,steak
eggs,soup,ice cream
eggs,burrito,salad
eggs,burrito,steak
...etc....