- median<Value, Path>(array: Value[], path?: Path): number
-
Type Parameters
-
Value extends Record<string, unknown>
-
Path extends string = never
Parameters
-
array: Value[]
-
Optional
path: Path
Returns number
- median<Value>(array: Value[]): number
-
Returns number
Returns the median value of a given path
Example