- sum(iterable): number
Returns number
- sum<T>(iterable, accessor): number
Parameters
iterable: Iterable<T>
accessor: ((datum, index, array) => number)
- (datum, index, array): number
Parameters
datum: T
index: number
array: Iterable<T>
Returns number
Returns number
Compute the sum of an array of numbers.