I have Array<object>
which contains n
objects of type
{
name: 'random',
startDate: '2017-11-10 09:00',
endDate: '2017-11-23 11:00'
}
What i want is, before rendering the results to filter this array in new Array<object
which holds the startDate
(and its unique, 2017-11-10 09:00
and 2017-11-10 10:00
are not uniques) and a counter
how many times this Date
is in the data array. How can i achieve that?