title: Combine elements from two multidimensional arrays in JavaScript
body: <p>I have the following two arrays in JavaScript:</p>
  
  <pre><code>"total":[[1370923200000,"66"],[1371009600000,"42"],[1371096000000,"23"]]
  
  "successful":[[1370923200000,"5"],[1371096000000,"2"],[1371182400000,"0"]]
  </code></pre>
  
  <p>I'd like to combine them into one array / object which looks something like this:</p>
  
  <pre><code>{date:1370923200000, total:"66", successful:"5"},
  {date:1371009600000, total:"42"},
  {date:1371096000000, total:"23", successful:"2"},
  {date:1371182400000, successful:"0"}
  </code></pre>
  
  <p>I've tried multiple different solutions, looping through both arrays, but I can't seem to figure out an elegant solution.</p>