title: Remove one level of nested arrays from JS data structure
body: <p>How can I convert the following data structure:</p>
  
  <pre><code>var data = [ [ { time: 1, speed : 20 } ] ]; 
  </code></pre>
  
  <p>to</p>
  
  <pre><code>var data = [ { time: 1, speed: 54 } ];
  </code></pre>
  
  <p>I just want to remove the array.</p>