Find the median of an array.
An array.
Optional
The iteratee invoked on each element.
Returns the median.
0.1.0
median([1, 2, 3])// => 2const objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }]median(objects, ({ n }) => n)// => 5 Copy
median([1, 2, 3])// => 2const objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }]median(objects, ({ n }) => n)// => 5
Find the median of an array.