I have an array like following:
[
[],
[],
[],
[ { count: 16, date: '2020-11-13' } ],
[ { count: 25, date: '2020-11-12' } ],
]
and I need to convert it to the following format:
[
{ count: 16, date: '2020-11-13' },
{ count: 25, date: '2020-11-12' }
]
What's the most efficient way to do this?