title: Retrieve only one field from object/array using underscore.js
body: <p>In ruby I'm able to do the following:</p>
  
  <pre><code>myObject.map(&amp;:name)
  </code></pre>
  
  <p>And I get an array composed by all the <code>name</code> field for all values inside <code>myObject</code> (array or object).</p>
  
  <p>What's the underscore.js or lodash.js equivalent? I prefer in only one line if possible :)</p>
  
  <p><em>Example</em>: (in js)</p>
  
  <pre><code>_.map([{name: 'x'}, {name: 'y'}], function(obj){
      //dosomething
  })
  </code></pre>