[{endDateTime: "19:59"expectValue: 100startAtTime: "19:58"},{endDateTime: "19:59"expectValue: 200startAtTime: "20:58"}]
json数据如何转换成下面的数据格式
{19:58,19:59: "100", 19:59,20:58: "200"}
arr.reduce((result,v)=>{ result[v.startAtTime+","+v.endDateTime]=v.expectValue; return result; },{})
1.4m articles
1.4m replys
5 comments
57.0k users