mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 03:47:50 +00:00
Bump to v3.1.0.
This commit is contained in:
committed by
John-David Dalton
parent
3b2df88eab
commit
1608d89174
@@ -1,4 +1,4 @@
|
||||
define(['./map', '../utility/property'], function(map, property) {
|
||||
define(['../internal/baseProperty', './map'], function(baseProperty, map) {
|
||||
|
||||
/**
|
||||
* Gets the value of `key` from all elements in `collection`.
|
||||
@@ -24,7 +24,7 @@ define(['./map', '../utility/property'], function(map, property) {
|
||||
* // => [36, 40] (iteration order is not guaranteed)
|
||||
*/
|
||||
function pluck(collection, key) {
|
||||
return map(collection, property(key));
|
||||
return map(collection, baseProperty(key + ''));
|
||||
}
|
||||
|
||||
return pluck;
|
||||
|
||||
Reference in New Issue
Block a user