请各位大佬指点!数组的归纳合并十分感谢

letkindList=[
{kind:"高值",useMoney:"1500",num:"1"},
{kind:"低值",useMoney:"200",num:"2"},
{kind:"高值",useMoney:"1000",num:"1"},
{kind:"中值",useMoney:"800",num:"2"},
{kind:"中值",useMoney:"300",num:"10"}
];
//希望的到目标数组,相同类的数量总和和金额总和
[
{kind:"高值",useMoney:"2500",num:"2"},
{kind:"低值",useMoney:"200",num:"2"},
{kind:"中值",useMoney:"1100",num:"12"}
]
红颜莎娜
浏览 217回答 2
2回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript