I have an array like this:
Model:
export class Total {
Id: number;
Products: string;
LastUpdated: Date;
}
I have a list of this with:
myList[] = this.service.getProducts().toPromise();
How do I make a new array with only get Products and LastUpdated from myList?
myProducts[] = ["prod1","prod2","prod3","prod3"];
myDates[] = ["2020-03-01","2020-03-02","2020-03-05","2020-03-06"];