mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 05:32:09 +03:00
30 lines
658 B
TypeScript
30 lines
658 B
TypeScript
// Loaded from https://deno.land/x/ramda@v0.27.2/source/gte.js
|
|
|
|
|
|
import _curry2 from './internal/_curry2.js';
|
|
|
|
|
|
/**
|
|
* Returns `true` if the first argument is greater than or equal to the second;
|
|
* `false` otherwise.
|
|
*
|
|
* @func
|
|
* @memberOf R
|
|
* @since v0.1.0
|
|
* @category Relation
|
|
* @sig Ord a => a -> a -> Boolean
|
|
* @param {Number} a
|
|
* @param {Number} b
|
|
* @return {Boolean}
|
|
* @see R.lte
|
|
* @example
|
|
*
|
|
* R.gte(2, 1); //=> true
|
|
* R.gte(2, 2); //=> true
|
|
* R.gte(2, 3); //=> false
|
|
* R.gte('a', 'z'); //=> false
|
|
* R.gte('z', 'a'); //=> true
|
|
*/
|
|
var gte = _curry2(function gte(a, b) { return a >= b; });
|
|
export default gte;
|