title: Javascript Map multiple values into list
body: <p>I currently have an array ... code goes like this:</p>
  
  <pre><code>namelist=[];
  
  var namelist = mydata.cars.map( o =&gt; o.name );
  </code></pre>
  
  <p>This gives me the name of the cars.</p>
  
  <p>What I want to do it to pass several values instead of just one so I get then call for them when needed. </p>
  
  <p>For example id and name.</p>
  
  <p>How can I do this?</p>