How to use the median function from ramda

Find comprehensive JavaScript ramda.median code examples handpicked from public code repositorys.

7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
 * @sig [Number] -> Number
 * @param {Array} list
 * @return {Number}
 * @example
 *
 *      R.median([2, 9, 7]); //=> 7
 *      R.median([7, 2, 10, 9]); //=> 8
 *      R.median([]); //=> NaN
 */
var median = _curry1(function median(list) {
fork icon0
star icon0
watch icon0

+ 53 other calls in file

9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
* @since v0.14.0
* @category Math
* @sig [Number] -> Number
* @param {Array} list
* @return {Number}
* @see R.median
* @example
*
*      R.mean([2, 7, 9]); //=> 6
*      R.mean([]); //=> NaN
fork icon0
star icon0
watch icon2

+ 15 other calls in file

Other functions in ramda

Sorted by popularity

function icon

ramda.clone is the most popular function in ramda (30311 examples)