mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Add doc examples to _.gt, _.gte, _.lt, & _.lte. [ci skip]
This commit is contained in:
@@ -8584,6 +8584,16 @@
|
|||||||
* @param {*} value The value to compare.
|
* @param {*} value The value to compare.
|
||||||
* @param {*} other The other value to compare.
|
* @param {*} other The other value to compare.
|
||||||
* @returns {boolean} Returns `true` if `value` is greater than `other`, else `false`.
|
* @returns {boolean} Returns `true` if `value` is greater than `other`, else `false`.
|
||||||
|
* @example
|
||||||
|
*
|
||||||
|
* _.gt(3, 1);
|
||||||
|
* // => true
|
||||||
|
*
|
||||||
|
* _.gt(3, 3);
|
||||||
|
* // => false
|
||||||
|
*
|
||||||
|
* _.gt(1, 3);
|
||||||
|
* // => false
|
||||||
*/
|
*/
|
||||||
function gt(value, other) {
|
function gt(value, other) {
|
||||||
return value > other;
|
return value > other;
|
||||||
@@ -8598,6 +8608,16 @@
|
|||||||
* @param {*} value The value to compare.
|
* @param {*} value The value to compare.
|
||||||
* @param {*} other The other 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`.
|
* @returns {boolean} Returns `true` if `value` is greater than or equal to `other`, else `false`.
|
||||||
|
* @example
|
||||||
|
*
|
||||||
|
* _.gte(3, 1);
|
||||||
|
* // => true
|
||||||
|
*
|
||||||
|
* _.gte(3, 3);
|
||||||
|
* // => true
|
||||||
|
*
|
||||||
|
* _.gte(1, 3);
|
||||||
|
* // => false
|
||||||
*/
|
*/
|
||||||
function gte(value, other) {
|
function gte(value, other) {
|
||||||
return value >= other;
|
return value >= other;
|
||||||
@@ -9213,6 +9233,16 @@
|
|||||||
* @param {*} value The value to compare.
|
* @param {*} value The value to compare.
|
||||||
* @param {*} other The other value to compare.
|
* @param {*} other The other value to compare.
|
||||||
* @returns {boolean} Returns `true` if `value` is less than `other`, else `false`.
|
* @returns {boolean} Returns `true` if `value` is less than `other`, else `false`.
|
||||||
|
* @example
|
||||||
|
*
|
||||||
|
* _.lt(1, 3);
|
||||||
|
* // => true
|
||||||
|
*
|
||||||
|
* _.lt(3, 3);
|
||||||
|
* // => false
|
||||||
|
*
|
||||||
|
* _.lt(3, 1);
|
||||||
|
* // => false
|
||||||
*/
|
*/
|
||||||
function lt(value, other) {
|
function lt(value, other) {
|
||||||
return value < other;
|
return value < other;
|
||||||
@@ -9227,6 +9257,16 @@
|
|||||||
* @param {*} value The value to compare.
|
* @param {*} value The value to compare.
|
||||||
* @param {*} other The other value to compare.
|
* @param {*} other The other value to compare.
|
||||||
* @returns {boolean} Returns `true` if `value` is less than or equal to `other`, else `false`.
|
* @returns {boolean} Returns `true` if `value` is less than or equal to `other`, else `false`.
|
||||||
|
* @example
|
||||||
|
*
|
||||||
|
* _.lte(1, 3);
|
||||||
|
* // => true
|
||||||
|
*
|
||||||
|
* _.lte(3, 3);
|
||||||
|
* // => true
|
||||||
|
*
|
||||||
|
* _.lte(3, 1);
|
||||||
|
* // => false
|
||||||
*/
|
*/
|
||||||
function lte(value, other) {
|
function lte(value, other) {
|
||||||
return value <= other;
|
return value <= other;
|
||||||
|
|||||||
Reference in New Issue
Block a user