Within my JavaScript API, I have received a result that requires me to group elements by date in order to perform further calculations. The result is as follows:
[
"2020-01-24 08:00:00",
"2020-01-23 14:00:00",
"2020-01-23 12:00:00",
"2020-01-23 09:00:00",
"2020-01-22 09:00:00",
"2020-01-22 13:00:00"
]
The grouping should be done like this :
[ "2020-01-24": 1 value,
"2020-01-23": 3 value,
"2020-01-22": 2 value ]
In addition, I also need to search within the array and extract any values with a count of >= 3 to place them in another array.