项目文件夹

文件
2026-07-10 15:29:28 +08:00

8 行
167 B
JavaScript

'use strict';
function invoiceTotal(lines) {
return lines.reduce((total, line) => total + line.quantity * line.unitPrice, 0);
}
module.exports = { invoiceTotal };