Returns the median of a set of numbers.
function median(...numbers: (number | number[])[]): number
// Example:
median(1, 2, 3, 4, 5) //=> 3
median(1, 2, 3, 4) //=> 2.5
Returns the median of a set of numbers.
function median(...numbers: (number | number[])[]): number
// Example:
median(1, 2, 3, 4, 5) //=> 3
median(1, 2, 3, 4) //=> 2.5