Hey there, currently I am working with Typescript on Angular 9. I have a dataset that is structured like the example below and I need to present it in a mat-table.
Is there a way to transform it as follows?
0: CustomPoDTO {id: "1", equipmentOrdered: "Monitor, Keyboard", quantity: 2}
1: CustomPoDTO {id: "2", equipmentOrdered: "Keyboard, Monitor, Mouse", quantity: 6}
2: CustomPoDTO {id: "3", equipmentOrdered: "Mouse", quantity: 2}
to look like this?
0: CustomPoDTO {id: "1", equipmentOrdered: "Monitor and 1 more", quantity: 2}
1: CustomPoDTO {id: "2", equipmentOrdered: "Keyboard and 2 more", quantity: 6}
2: CustomPoDTO {id: "3", equipmentOrdered: "Mouse", quantity: 2}