I'm trying to remember what the technical terminology would be for combining two or more arrays.For example, if you had two arrays.var arr = [['Foo1', 'Foo2', 'Foo3'], ['Bar1', 'Bar2']]; And you wanted to create an array like this:[['Foo1', 'Bar1'], ['Foo1', 'Bar2'], ['Foo2', 'Bar1'], ['Foo2', 'Bar2'], ['Foo3', 'Bar1'], ['Foo3', 'Bar2']]; I feel like there would be another term for joining them where you also have them in every possible position.I'm looking for algorithms around this, but I'm not sure what to Google. I appreciate any help, thanks!
Submitted April 19, 2020 at 12:07AM by billyjackbark
No comments:
Post a Comment