Bump to v3.1.0.

This commit is contained in:
jdalton
2015-02-03 22:31:07 -08:00
parent bbec03c4d5
commit 9e749daefa
21 changed files with 127 additions and 66 deletions

View File

@@ -1,5 +1,5 @@
var map = require('./map'),
property = require('../utility/property');
var baseProperty = require('../internal/baseProperty'),
map = require('./map');
/**
* Gets the value of `key` from all elements in `collection`.
@@ -25,7 +25,7 @@ var map = require('./map'),
* // => [36, 40] (iteration order is not guaranteed)
*/
function pluck(collection, key) {
return map(collection, property(key));
return map(collection, baseProperty(key + ''));
}
module.exports = pluck;