title: Merge array into a single array
body: <p>If this were .NET, I'd ask how to convert <code>List&lt;List&lt;MyClass&gt;</code> to <code>List&lt;MyClass&gt;</code>. However, I'm not very good with javascript and don't know how to ask that as a question using Javascript terminology!</p>
  
  <p>My javascript object comes through like</p>
  
  <p><img src="https://i.stack.imgur.com/W8IgQ.png" alt="enter image description here"></p>
  
  <p>And is created as:</p>
  
  <pre><code>js_datasets.push({
  "DataItem0": {
  lzabel: "This",
  data: [[1408710276000, null],[1408710276000, 15]]
  },
  "DataItem1": {
  lzabel: "That",
  data: [[1408710276000, null],[1408710276000, 15]]
  },
  });
  
  
  js_datasets.push({
  "DataItem22": {
  lzabel: "And other",
  data: [[1408710276000, null],[1408710276000, 5]]
  },
  "DataItem23": {
  lzabel: "And lastly",
  data: [[1408710276000, null],[1408710276000, 1]]
  },
  });
  </code></pre>
  
  <p>Each object is the same "type" (if it matters). </p>
  
  <p>I'd like to create a single list but I am failing to do so. My efforts are</p>
  
  <pre><code>var myDataSet = []; //this is the results of what I want, ideally as a single list
  
  for (var i = 0; i &lt; js_datasets.length; i++) {
  
      if (i==0) {
          myDataSet.push(js_datasets[i]);
      }
      else {
          myDataSet.concat(js_datasets[i]);//does nothing
          myDataSet.join(js_datasets[i]);//does nothing
      }
  
  ...more logic
  </code></pre>
  
  <p>As you can see with the above, I've tried using <code>push</code>, <code>concat</code> and <code>join</code>.</p>
  
  <p>If I update the code to only use push (and never use concat and join) then I get all the values I want, but again, as an array within an array. </p>
  
  <p>Using concat and join do not add to the list.</p>
  
  <p>So, if we can assume the 12 items in the array (pictured) all contain 10 items, I'd like to have a single list of the 120 items!</p>
  
  <p>How can I simply convert this multidimension array (is it multidimension) to a single dimension array. </p>