Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 254 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 254 Bytes

Median

Shorthand for finding element with median value of an attribute. Tiebreaker option is available for even length ranges. Defaults by taking the lower of the two.

Example

const medianScore = myArr.median(x => x.score);