UNPKG

465 BJavaScriptView Raw
1var _curry2 =
2/*#__PURE__*/
3require("./internal/_curry2");
4/**
5 * Returns the smaller of its two arguments.
6 *
7 * @func
8 * @memberOf R
9 * @since v0.1.0
10 * @category Relation
11 * @sig Ord a => a -> a -> a
12 * @param {*} a
13 * @param {*} b
14 * @return {*}
15 * @see R.minBy, R.max
16 * @example
17 *
18 * R.min(789, 123); //=> 123
19 * R.min('a', 'b'); //=> 'a'
20 */
21
22
23var min =
24/*#__PURE__*/
25_curry2(function min(a, b) {
26 return b < a ? b : a;
27});
28
29module.exports = min;
\No newline at end of file