- median(iterable): number | undefined
Returns number | undefined
- median<T>(iterable, accessor): number | undefined
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 | undefined
Return the median of an array of numbers