@ac-essentials/misc-util
    Preparing search index...

    Function median

    • Calculates the median of a list of numbers.

      The median is the middle value when the numbers are sorted in ascending order.

      If there is an even number of values, the median is the average of the two middle values.

      Parameters

      • ...values: number[]

        Array of numbers

      Returns number

      Median of the numbers