@MOHANTHANGARAJ wrote:
this.cart = this.aggregateCart(‘cart’);
aggregateCart = (cart) => {
let newCart = ;
cart.forEach(function(item) {
if(newCart.indexOf(item) < 0) {
newCart.push(item);
}
});
return newCart;
}
i have initialized this in constructor and i intend to use this function to aggregate my cart elements but the error is shown like this “”
Posts: 1
Participants: 1
