Here is a sample response I received from an API call:
{
"1-2021": [
{
"id": 1,
"status": "New",
"player_count": 7
},
...
Now, I need to iterate through the nested arrays within this structure using VueJS. Can someone guide me on how to achieve this using either forEach or any other method in VueJS?
I have researched using forEach..
but could not find any relevant information. Any help would be greatly appreciated!
The expected outcome should look like this:
chartData: [
['Month', 'New', 'Verified', 'Regitered ID', 'On Playing', 'Finished', 'Active', 'Inactive'],
['January', 7, 4, 18, 15, 9, 10, 0],
['February', 16, 22, 23, 30, 16, 9, 8]
]
Thank you for your assistance.