title: JavaScript flattening an array of arrays of objects
body: <p>I have an array which contains several arrays, each containing several objects, similar to this.</p>
  
  <pre><code>[[object1, object2],[object1],[object1,object2,object3]]
  </code></pre>
  
  <p>Here is a screenhot of the object logged to the console.
  <img src="https://i.stack.imgur.com/T3BnP.png" alt=""></p>
  
  <p>What would be the best approach to flattening this out so it just an array of objects?</p>
  
  <p>I've tried this with no luck:</p>
  
  <pre><code>console.log(searchData);  
    var m = [].concat.apply([],searchData);    
  console.log(m);
  </code></pre>
  
  <p>searchData logs out the screenshot above, but m logs out [ ]</p>
  
  <p>Here is the actual contents of searchData:</p>
  
  <pre><code>[[{"_id":"55064111d06b96d974937a6f","title":"Generic Title","shortname":"generic-title","contents":"&lt;p&gt;The Healing Center offers practical, social, and spiritual support to individuals and families. Services include, but are not limited to: food and clothing, job skills training and job search assistance, auto repair (Saturdays only), mentoring, financial counseling, tutoring, prayer, life skills training, and helpful information about local community services.&lt;/p&gt;&lt;p&gt;Stay in touch with us:&lt;/p&gt;","__v":0},{"_id":"5508e1405c621d4aad2d2969","title":"test english","shortname":"test-page","contents":"&lt;h2&gt;English Test&lt;/h2&gt;","__v":0}],[{"_id":"550b336f33a326aaee84f883","shortname":"ok-url","title":"now english","contents":"&lt;p&gt;okokko&lt;/p&gt;","category":"Transportation","__v":0}]]
  </code></pre>