根据某个字段合并数组




let hash = {};
monthes = monthes.reduce((item,next)=>{
hash[next.month] ? ‘’ : (hash[next.month] = true && item.push(next));
return item;
})
list.forEach(item=>{
for(let i in monthes){
if(item.month == monthes[i].month){
monthes[i].data.push(item);
}
}
})
