• Returns the median of an array anArray using the so-called "Median of medians" algorithm. This function uses the findMedianByPick and findMedianFast functions.

    Parameters

    • anArray: any[]

      the array to consider

    Returns any

    the median of anArray, or undefined if the array is