I am looking to split a single array containing objects with 2 elements into two separate arrays.
After making an axios call, I received the following array:
chartdata: Array [4]
[{"total":3,"month":9},
{"total":5,"month":5},
{"total":9,"month:"2},
{"total":4,"month:"1}]
How do I extract an array of totals and an array of months from this data structure?