sum - nodef/extra-math GitHub Wiki
Find the sum of numbers (Σ).
Similar: sum, product.
function sum(...xs)
// xs: a list of numbers
const xmath = require('extra-math');
xmath.sum(1, 2);
// → 3
xmath.sum(1, 2, 3);
// → 6
xmath.sum(1, 2, 3, 4);
// → 10