diff --git a/index.html b/index.html index 2b0025d83..d69e8357f 100644 --- a/index.html +++ b/index.html @@ -1370,6 +1370,7 @@
mapObject_.mapObject(array, iteratee, [context])
+ Alias: mapValues
Like map, but for objects. Transform the value
of each property in turn.
diff --git a/underscore.js b/underscore.js
index d467f7924..4db3199ed 100644
--- a/underscore.js
+++ b/underscore.js
@@ -951,7 +951,7 @@
// Returns the results of applying the iteratee to each element of the object
// In contrast to _.map it returns an object
- _.mapObject = function(obj, iteratee, context) {
+ _.mapObject = _.mapValues = function(obj, iteratee, context) {
iteratee = cb(iteratee, context);
var keys = _.keys(obj),
length = keys.length,