Skip to content

Instantly share code, notes, and snippets.

@Kiwka
Created February 6, 2020 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kiwka/7f94d63fee123551624e8801cdf4fec5 to your computer and use it in GitHub Desktop.
Save Kiwka/7f94d63fee123551624e8801cdf4fec5 to your computer and use it in GitHub Desktop.
Brute-force solution to get all options for a few arrays
arr1.forEach(option1 => {
arr2.forEach(option2 => {
arr3.forEach(option3 => {
arr4.forEach(option4 => {
// use option1, option2, option3, option4 here
});
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment