We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Find the sum of bigints (Σ).
Similar: sum, product.
function sum(...xs) // xs: bigints
const xbigint = require('extra-bigint'); xbigint.sum(1n, 2n); // → 3n xbigint.sum(1n, 2n, 3n); // → 6n xbigint.sum(1n, 2n, 3n, 4n); // → 10n