/node_modules/lodash/gte.js
https://bitbucket.org/coleman333/smartsite · JavaScript · 30 lines · 5 code · 2 blank · 23 comment · 0 complexity · 451c4c46af4bab5d7b0b7e106c2ffb4b MD5 · raw file
- var createRelationalOperation = require('./_createRelationalOperation');
- /**
- * Checks if `value` is greater than or equal to `other`.
- *
- * @static
- * @memberOf _
- * @since 3.9.0
- * @category Lang
- * @param {*} value The value to compare.
- * @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);
- * // => true
- *
- * _.gte(3, 3);
- * // => true
- *
- * _.gte(1, 3);
- * // => false
- */
- var gte = createRelationalOperation(function(value, other) {
- return value >= other;
- });
- module.exports = gte;