I have an array containing dates, I want to iterate over the array to get a count for how many times a date appears. I want the data to be displayed in a chart so the result needs to be in the form
data:[
[count, date],
[count, date],
[count, date]
]
so that the count for each date is in an array with it.
I was having some difficulty trying to find a good way to do this, or if there was a method that I may have overlooked