[{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; },{})
2.1m questions
2.1m answers
60 comments
57.0k users