open_in_new
content_copy
const totalPrice = items.reduce((accumulator ,item) => { return accumulator += item.price; }, 0)