Share your code. Components are building blocks, you are the architect.

utils/median
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
Build: fail
BuildFail
Build Status: fail
Returns the median of the given list of numbers.

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use utils/median in your project
npm i @bit/bit.ramda.utils.median
Copied

median (list:Array) : Number

Returns the median of the given list of numbers.

Example

R.median([2, 9, 7]); //=> 7
     R.median([7, 2, 10, 9]); //=> 8
     R.median([]); //=> NaN

Argument

list: Array

Returns

Number