Get the sum of all the values in an array.
npm install totalled
const totalled = require("totalled"); totalled([1, 2, 3]); //=> 6
Type: array<number>
array<number>
The array to sum.