API Reference

Returns the mean of a set of numbers.

function mean(...numbers: (number | number[])[]): number

// Example:

mean(1, 2, 3, 4) //=> 2.5