title: Map the first element of each array of an array of arrays in Javascript
body: <p>I have an array of arrays like this:</p>
  
  <pre><code>myData = [
            ["name1", 34.1, 43.1, 55.2],
            ["name2", 5.3, 23.6, 40.9],
            ["name3", 43.5, 77.8, 22.4]
           ];
  </code></pre>
  
  <p>I want to get an array containing only the first element of each array like this: <code>["name1", "name2", "name3"]</code>.</p>
  
  <p>I tried to do it like this but doesn't work:</p>
  
  <pre><code>var arrayTitle = myData.map(function(x) {
      return [myData[x][0]];
  });
  </code></pre>
  
  <p>Any suggestions?</p>