I'm trying to create a dataset from an API backend I've set up in my project. I've already managed to group my api call on the date but now I need to check the length of each date array that is created by lodash.
How would I do this because every attempt I've tried so far has failed. The image I've included shows the console.log after I have grouped my result, it also shows the amount of entries in each array which is exactly what I want to retrieve.
Current code, I removed my attempt at solving this problem because I would only get back undefined results.
ngOnInit() {
this._estimateService.getEstimates()
.subscribe(estimateData => {
const groupedEstimateData = groupBy(estimateData, 'estimate_date');
console.log(groupedEstimateData);
});
}
Example of desired result:
2019-12-09, 47
2019-12-10, 6
etc

estimateData?