Returns the median of an array anArray using the Median of medians algorithm.

if the array is empty

  • Parameters

    • anArray: any[]

      the array to consider

    Returns any

    the median of anArray, or undefined if the array is empty