title: pick multiple keys and values from array of objects
body: <p>I need to pick few keys and values (only name and age) from below array of objects.</p>
  <pre><code>const studentList = [{&quot;id&quot;: &quot;1&quot;, &quot;name&quot;: &quot;s1&quot;. &quot;age&quot;: 10, &quot;gender&quot; : &quot;m&quot;, &quot;subject&quot;: &quot;Maths&quot;},{&quot;id&quot;: &quot;2&quot;, &quot;name&quot;: &quot;s2&quot;. &quot;age&quot;: 11, &quot;gender&quot; : &quot;m&quot;, &quot;subject&quot;: &quot;Maths&quot;}]
  </code></pre>
  <p>I can achieve that using map and lodash pick as in below.</p>
  <pre><code>let nameAndAgeList = studentList.map(student =&gt; pick(student, [&quot;name&quot;, &quot;age&quot;]));
  </code></pre>
  <p>But is there any more easy way with only using map. I know we can retrieve only one property as in below.</p>
  <pre><code>let nameArr = (studentList).map(({ name }) =&gt; name);
  </code></pre>
  <p>But how can we retrieve both name and age using map? Or any more easy &amp; best ways with es6+</p>