I have two arrays that I would like to map/recurse through and combine all the values into one array.
var array1 = ['steve', 'mike'];
var array2 = ['2020', '2019', '2018'];
The goal is to create an array of all the possible combinations:
['steve2020', 'steve2019', 'steve2018', 'mike2020', 'mike2019', 'mike2018']
I'm not sure if a map for for/next is appropriate or more efficient, but it's hurting my brain right now trying to decipher the recursion logic here. :) Any ideas are much appreciated.