mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 07:17:50 +00:00
27 lines
591 B
JavaScript
27 lines
591 B
JavaScript
import createRelationalOperation from './.internal/createRelationalOperation.js';
|
|
|
|
/**
|
|
* Checks if `value` is greater than or equal to `other`.
|
|
*
|
|
* @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
|
|
*/
|
|
const gte = createRelationalOperation((value, other) => value >= other);
|
|
|
|
export default gte;
|