Function: meanConcur()
meanConcur(
concurIterable
):Promise
<number
>
Returns a promise that resolves to the mean of the numbers of
concurIterable
.
Returns a promise that resolves to NaN
for an empty concur iterable.
Parameters
• concurIterable: ConcurIterable
<number
>
Returns
Promise
<number
>
Example
console.log(await meanConcur(asConcur([1, 4, 6, 2])))
//=> 3.25
console.log(await meanConcur(emptyConcur))
//=> NaN