Files

4 lines
81 B
JavaScript

export function total(items) {
return items.reduce((a, b) => a + b.price, 0)
}