_.mapObject is not supported in meteor

偶尔善良 提交于 2019-12-12 03:52:20

问题


_.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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!