Variable: sumAsync()
const
sumAsync: (asyncIterable
) =>Promise
<number
>
Defined in: statistics.d.ts:138
Returns a promise that resolves to the sum of the numbers of asyncIterable
.
Parameters
asyncIterable
AsyncIterable
<number
>
Returns
Promise
<number
>
Example
console.log(await sumAsync(asAsync([1, 4, 6, 2])))
//=> 3
Since
v0.0.1