APIStatisticsmeanOn this pageFunction: mean() mean(iterable): number Returns the mean of the numbers of iterable. Returns NaN for an empty iterable. Parameters • iterable: Iterable<number, any, any> Returns number Example console.log(mean([1, 4, 6, 2]))//=> 3.25console.log(mean([]))//=> NaN Defined in statistics.d.ts:186