sumBy
sumBy<
T>(iterable,valueOf,options?):number
Defined in: sum.ts:24
Returns the sum of fn(item) over all items.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”iterable
Section titled “iterable”Iterable<T>
The input iterable.
valueOf
Section titled “valueOf”Callable<[T], number>
Numeric extractor.
options?
Section titled “options?”How to accumulate; exact by default.
Returns
Section titled “Returns”number
The total sum.