let myArrayOfObjects = [{Group:MD,qtyA:4,qtyB:5},{Group:IL,qtyA:1,qtyB:3},{Group:FL,qtyA:5,qtyB:5}];
//EXPECTED RESULT:
// [{Group:MD,Total:9},{Group:IL,Total:4},{Group:FL,Total:10}]
I am currently utilizing the reduce method to extract data from myArrayOfObjects. However, I am struggling with calculating the total quantity for each Group while still maintaining the Group information in the resulting array of objects.