私は次の json abjects を持っており、それらを 1 つのオブジェクトにマージし、「分」値に基づいて短いサブオブジェクトを作成したいと考えています。それは JavaScript で可能ですか?
[Object, Object, Object]
0: Object
Live: "188585"
Minute: "17"
Player: "Player A"
Team: "188564"
__proto__: Object
1: Object
Live: "188585"
Minute: "26"
Player: "Player B"
Team: "188564"
__proto__: Object
2: Object
Live: "188585"
Minute: "77"
Player: "Player A"
Team: "188564"
__proto__: Object
[Object, Object]
0: Object
Live: "188585"
Minute: "31"
Player: "Player C"
Team: "188558"
__proto__: Object
1: Object
Live: "188585"
Minute: "41"
Player: "Player D"
Team: "188558"
__proto__: Object
私はそのようになりたい結果:
[Object, Object, Object, Object, Object]
0: Object
Live: "188585"
Minute: "17"
Player: "Player A"
Team: "188564"
__proto__: Object
1: Object
Live: "188585"
Minute: "26"
Player: "Player B"
Team: "188564"
__proto__: Object
2: Object
Live: "188585"
Minute: "31"
Player: "Player C"
Team: "188558"
__proto__: Object
3: Object
Live: "188585"
Minute: "41"
Player: "Player D"
Team: "188558"
__proto__: Object
4: Object
Live: "188585"
Minute: "77"
Player: "Player A"
Team: "188564"
__proto__: Object