Bump to v3.8.0.

This commit is contained in:
jdalton
2015-04-19 09:18:54 -07:00
parent 863bb301bb
commit 53c14e5b9b
58 changed files with 538 additions and 405 deletions

View File

@@ -1,5 +1,4 @@
var baseCallback = require('../internal/baseCallback'),
baseForOwn = require('../internal/baseForOwn');
var createObjectMapper = require('../internal/createObjectMapper');
/**
* Creates an object with the same keys as `object` and values generated by
@@ -42,14 +41,6 @@ var baseCallback = require('../internal/baseCallback'),
* _.mapValues(users, 'age');
* // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
*/
function mapValues(object, iteratee, thisArg) {
var result = {};
iteratee = baseCallback(iteratee, thisArg, 3);
baseForOwn(object, function(value, key, object) {
result[key] = iteratee(value, key, object);
});
return result;
}
var mapValues = createObjectMapper();
module.exports = mapValues;