标签: underscore.js
_.mapObject。如何使用_.mixin工作_.mapObject。请参阅下面的代码
_.mapObject
_.mixin
var result = _.mapObject(typesOverall, function(val, key) { return _.reduce(val, function(memo, v) { return memo + v.val; }, 0) / val.length * 10; })