title: Concisely mapping 2 columns from 2D array to key:value pairs
body: <p>In this example snippet of code, I selectively convert 2 columns from my 2D array into an object. The 1st column represents the keys, the 2nd represents the values.</p>
  
  <p>I feel like there is a more concise way of codifying this idea without so many lines of code.</p>
  
  <pre><code>var my2dArray = [ ['a',2], ['b',3], ['c',4] ];
  var keys = [];
  var values = [];
  var myObj = {};
  
  for(var row = 1; row &lt; my2dArray.length; row++) {
      keys[row] = my2dArray[row][0];
      values[row] = my2dArray[row][1];
      myObj[keys[row]] = values[row];
  }
  
  console.log(prod_compare); // outputs object
  </code></pre>
  
  <p>In reality, I have a 4 column array. Don't mind the simplicity of <code>my2dArray</code>. Is there a way to select these two columns for mapping to an object without having to declare 2 temporary arrays?</p>