Say I have an object like so...
and I have an array with ids like this..
array = ['21d32fwef23fw32f3', '21we3weasdf23rfwfwf3']
how can I return only the objects that have sys.ids that match the ids in the array
Ive tried using lodash like so..
getWeekItems(weekNumber) {
this.contenfulService.getWeekItems(weekNumber)
.then((weekOverview) => {
this.weekOverviewCompleted = _.filter(weekOverview, this.completedIds);
console.log(this.weekOverviewCompleted);
}).then(() => console.log(this.weekOverview));
}
but Im getting an empty array back??
is there a better way to do this??
