- medianIndex(iterable): number
Returns number
- medianIndex<T>(iterable, accessor): number
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
Like median, but returns the index of the element to the left of the median.