问题
_.mapObject
is not supported in meteor. How to use _.mixin
to work _.mapObject
. Please refer to my code below
var result = _.mapObject(typesOverall, function(val, key) {
return _.reduce(val, function(memo, v) {
return memo + v.val;
}, 0) / val.length * 10;
})
来源:https://stackoverflow.com/questions/39153000/mapobject-is-not-supported-in-meteor