I am trying to solve this and keep getting stuck. I am currently trying to do this with lodash but open to any solution:
EDIT: I've done many searches and the suggested links are not the desired output
Array structure:
[
{ "date": "2022-03-01", "A": 11549 },
{ "date": "2022-03-01", "B": 4536 }
]
to become
[
{ "date": "2022-03-01", "A": 11549, "B": 4536 },
]