mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
optimized keys, values, and pluck
This commit is contained in:
@@ -298,8 +298,8 @@ _.invoke([[5, 1, 7], [3, 2, 1]], 'sort');
|
||||
<p id="pluck">
|
||||
<b class="header">pluck</b><code>_.pluck(list, propertyName)</code>
|
||||
<br />
|
||||
An optimized version of what is perhaps the most common use-case for
|
||||
<b>map</b>: returning a list of property values.
|
||||
An convenient version of what is perhaps the most common use-case for
|
||||
<b>map</b>: extracting a list of property values.
|
||||
</p>
|
||||
<pre>
|
||||
var stooges = [{name : 'moe', age : 40}, {name : 'larry', age : 50}, {name : 'curly', age : 60}];
|
||||
|
||||
Reference in New Issue
Block a user