_.mapObject

mapObject_.mapObject(object, iteratee, [context])
Like map, but for objects. Transform the value of each property in turn.

_.mapObject({start: 5, end: 12}, function(val, key) {
  return val + 5;
});
=> {start: 10, end: 17}
doc_Underscore
2016-04-09 09:05:29
Comments
Leave a Comment

Please login to continue.