#trying to .filter order list
5 messages · Page 1 of 1 (latest)
sort of need to combine both of those because it works when i add the products to the cart then they combine but when i try to see in the order it splits again
public getUniqueProducts(order: Order) {
return order
.products
.filter((product, index, self): product is Product => self.indexOf(product) === index && !!product);
}
this is what i have not but doesn t work😅