UNPKG

464 BJavaScriptView Raw
1var _curry2 =
2/*#__PURE__*/
3require("./internal/_curry2");
4/**
5 * Returns the larger 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.maxBy, R.min
16 * @example
17 *
18 * R.max(789, 123); //=> 789
19 * R.max('a', 'b'); //=> 'b'
20 */
21
22
23var max =
24/*#__PURE__*/
25_curry2(function max(a, b) {
26 return b > a ? b : a;
27});
28
29module.exports = max;
\No newline at end of file