• Calculates the median of an array.

    Parameters

    • input: NumberArray

      Array containing values

    • options: XMedianOptions = {}

    Returns number

    • median