Bump to v3.8.0.

This commit is contained in:
jdalton
2015-04-29 21:07:42 -07:00
parent 5eb8db31d7
commit d7b2bedafc
58 changed files with 300 additions and 194 deletions

View File

@@ -1,5 +1,4 @@
import baseCallback from '../internal/baseCallback';
import baseForOwn from '../internal/baseForOwn';
import createObjectMapper from '../internal/createObjectMapper';
/**
* Creates an object with the same keys as `object` and values generated by
@@ -42,14 +41,6 @@ import baseForOwn from '../internal/baseForOwn';
* _.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();
export default mapValues;