Skip to content

Instantly share code, notes, and snippets.

@Kiwka
Created February 6, 2020 21:48
Embed
What would you like to do?
Calculating options by using cartesian product
cartesian([arr1, arr2, arr3, arr4]).forEach(
(option1, option2, option3, 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