PageRenderTime 21ms CodeModel.GetById 14ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1var createRelationalOperation = require('./_createRelationalOperation');
 2
 3/**
 4 * Checks if `value` is greater than or equal to `other`.
 5 *
 6 * @static
 7 * @memberOf _
 8 * @since 3.9.0
 9 * @category Lang
10 * @param {*} value The value to compare.
11 * @param {*} other The other value to compare.
12 * @returns {boolean} Returns `true` if `value` is greater than or equal to
13 *  `other`, else `false`.
14 * @see _.lte
15 * @example
16 *
17 * _.gte(3, 1);
18 * // => true
19 *
20 * _.gte(3, 3);
21 * // => true
22 *
23 * _.gte(1, 3);
24 * // => false
25 */
26var gte = createRelationalOperation(function(value, other) {
27  return value >= other;
28});
29
30module.exports = gte;