title: Underscore equivalent of _.pick for arrays
body: <p>I understand that pick is used to get back an object with only specified properties:</p>
  
  <pre><code>_.pick({name: 'moe', age: 50, userid: 'moe1'}, 'name', 'age');
  =&gt; {name: 'moe', age: 50}
  </code></pre>
  
  <p>How would I perform that same operation on an array, say I have an array such as:</p>
  
  <pre><code>[{name: 'moe1', age: 50, userid: 'moe1'},
  {name: 'moe2', age: 50, userid: 'moe1'},
  {name: 'moe3', age: 50, userid: 'moe1'}]
  </code></pre>
  
  <p>and I want to map it to an array so to include only the <code>name</code> and <code>age</code> properties, like:</p>
  
  <pre><code>[{name: 'moe1', age: 50},
  {name: 'moe2', age: 50},
  {name: 'moe3', age: 50}]
  </code></pre>
  
  <p>Do I have to do an <code>each()</code> on the array then perform a <code>pick()</code> on each object, or is there a cleaner way?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Sorry but just another small requirement, how would I perform a where (i.e. get all those whose age is greater than 50) and then perform the <code>pick</code>?
  <strong>EDIT</strong>
  got it done like this, was unaware of how chaining works in underscore.</p>
  
  <pre><code>_(data).reject(function (r) { return d.age&lt;51; }).map(function (o) {
              return _.pick(o, "age", "name");
  });
  </code></pre>