APIStatisticssumOn this pageFunction: sum() sum(iterable): number Returns the sum of the numbers of iterable. Parameters • iterable: Iterable<number, any, any> Returns number Example console.log(sum([1, 4, 6, 2]))//=> 13 Defined in statistics.d.ts:117