Repository URL to install this package:
|
Version:
6.0.4 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var flip2_1 = require("../fp/flip2");
var max_1 = require("./max");
/**
* Returns the *smallest* of its two arguments.
* @since 5.0.0-beta.6
* @name min
* @alias smallest
* @memberOf math
*
* @param {number|*} a
* @param {number|*} b
* @return {number|*} if (b < a) b; else a
*
* @func
* @fork v0.1.0
* @category Relation
* @sig Ord a => a -> a -> a
*
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/max mozilla-math.min}
* @see {@link mozilla-math.min}
*
* @see maxBy, min
* @see math/min
*
* @example
*
* min(789, 123); //=> 789
* min('a', 'b'); //=> 'b'
*
*/
exports.default = flip2_1.default(max_1.default);
//# sourceMappingURL=min.js.map