Created
February 6, 2020 21:46
-
-
Save Kiwka/7f94d63fee123551624e8801cdf4fec5 to your computer and use it in GitHub Desktop.
Brute-force solution to get all options for a few arrays
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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