Function medianIndex

  • Like median, but returns the index of the element to the left of the median.

    Parameters

    Returns number

  • Like median, but returns the index of the element to the left of the median.

    Type Parameters

    • T

    Parameters

    • iterable: Iterable<T>
    • accessor: ((element, i, array) => number)
        • (element, i, array): number
        • Parameters

          • element: T
          • i: number
          • array: Iterable<T>

          Returns number

    Returns number