title: How can I create every combination possible for the contents of two arrays?
body: <p>I have two arrays:</p>
  <pre><code>var array1 = [&quot;A&quot;, &quot;B&quot;, &quot;C&quot;];
  var array2 = [&quot;1&quot;, &quot;2&quot;, &quot;3&quot;];
  </code></pre>
  <p>How can I set another array to contain every combination of the above, so that:</p>
  <pre><code>var combos = [&quot;A1&quot;, &quot;A2&quot;, &quot;A3&quot;, &quot;B1&quot;, &quot;B2&quot;, &quot;B3&quot;, &quot;C1&quot;, &quot;C2&quot;, &quot;C3&quot;];
  </code></pre>