Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public totalPrice(): number {
- return this.productList.reduce((acc: number, el: Product) => acc + el.price, 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement