How to use the minBy function from ramda

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

3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
* @example
*
*      //  square :: Number -> Number
*      var square = n => n * n;
*
*      R.minBy(square, -3, 2); //=> 2
*
*      R.reduce(R.minBy(square), Infinity, [3, -5, 4, 1, -2]); //=> 1
*      R.reduce(R.minBy(square), Infinity, []); //=> Infinity
*/
fork icon0
star icon0
watch icon0

+ 17 other calls in file

Other functions in ramda

Sorted by popularity

function icon

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