Skip to content

sum

sum(iterable, options?): number

Defined in: sum.ts:47

Returns the sum of all items.

Iterable<number>

The input iterable.

SumOptions

How to accumulate; exact by default.

number

The total sum.