From 311334c9e18d36f67a277ab1f2d12afe6efab239 Mon Sep 17 00:00:00 2001 From: jdalton Date: Sat, 9 May 2015 12:40:07 -0700 Subject: [PATCH] Add doc examples to `_.gt`, `_.gte`, `_.lt`, & `_.lte`. [ci skip] --- lodash.src.js | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/lodash.src.js b/lodash.src.js index 150f5edad..f19e8e643 100644 --- a/lodash.src.js +++ b/lodash.src.js @@ -8584,6 +8584,16 @@ * @param {*} value The value to compare. * @param {*} other The other value to compare. * @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) { return value > other; @@ -8598,6 +8608,16 @@ * @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`. + * @example + * + * _.gte(3, 1); + * // => true + * + * _.gte(3, 3); + * // => true + * + * _.gte(1, 3); + * // => false */ function gte(value, other) { return value >= other; @@ -9213,6 +9233,16 @@ * @param {*} value The value to compare. * @param {*} other The other value to compare. * @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) { return value < other; @@ -9227,6 +9257,16 @@ * @param {*} value The 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`. + * @example + * + * _.lte(1, 3); + * // => true + * + * _.lte(3, 3); + * // => true + * + * _.lte(3, 1); + * // => false */ function lte(value, other) { return value <= other;