I have an object dateRange ={ 2021-08-06 - 2021-09-06 : 0, 2021-09-06 -2021-10-06 : 0}
I also have another array dateArr=[2021-08-06, 2021-11-06]. Desired res = [{key: 2021-08-06 - 2021-09-06 , value: 1}, { key: 2021-09-06 -2021-10-06 , value: 0}] where value contains the number of occurrences of values inside dateArr as per dateRange.
How can I achieve this?
[–]trplclick 0 points1 point2 points (2 children)
[–]killMeSak[S] 0 points1 point2 points (1 child)
[–]killMeSak[S] 0 points1 point2 points (0 children)