mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
Bump to v4.11.2.
This commit is contained in:
7
gte.js
7
gte.js
@@ -1,3 +1,5 @@
|
||||
var createRelationalOperation = require('./_createRelationalOperation');
|
||||
|
||||
/**
|
||||
* Checks if `value` is greater than or equal to `other`.
|
||||
*
|
||||
@@ -9,6 +11,7 @@
|
||||
* @param {*} other The other value to compare.
|
||||
* @returns {boolean} Returns `true` if `value` is greater than or equal to
|
||||
* `other`, else `false`.
|
||||
* @see _.lte
|
||||
* @example
|
||||
*
|
||||
* _.gte(3, 1);
|
||||
@@ -20,8 +23,8 @@
|
||||
* _.gte(1, 3);
|
||||
* // => false
|
||||
*/
|
||||
function gte(value, other) {
|
||||
var gte = createRelationalOperation(function(value, other) {
|
||||
return value >= other;
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = gte;
|
||||
|
||||
Reference in New Issue
Block a user