Function median

  • Find the value separating the higher and lower halves of numbers. 📘

    Returns

    xₘ | sort(xs) = [..., xₘ, ...]

    Parameters

    • Rest ...xs: number[]

      a list of numbers

    Returns number

Generated using TypeDoc