I am looking for a way to analyze a list of dates that looks something like this:
[ "2020-08-20", "2020-08-20", "2020-08-21", "2020-08-24", "2020-08-25", "2020-08-25", "2020-08-25", ]
How can I determine the count of duplicate items in the list?
For example:
{date: "2020-08-20", count: 2},
{date: "2020-08-21", count: 1},
{date: "2020-08-24", count: 1},
{date: "2020-08-25", count: 3},
Any assistance would be greatly appreciated. Thank you!