function orderTotal(items) { return items.reduce( (total, product) => { return total + product.value; }, 0 ); } export { orderTotal };