UNPKG

482 BJavaScriptView Raw
1/**
2 * Checks if `value` is greater than `other`.
3 *
4 * @static
5 * @memberOf _
6 * @since 3.9.0
7 * @category Lang
8 * @param {*} value The value to compare.
9 * @param {*} other The other value to compare.
10 * @returns {boolean} Returns `true` if `value` is greater than `other`,
11 * else `false`.
12 * @example
13 *
14 * _.gt(3, 1);
15 * // => true
16 *
17 * _.gt(3, 3);
18 * // => false
19 *
20 * _.gt(1, 3);
21 * // => false
22 */
23function gt(value, other) {
24 return value > other;
25}
26
27export default gt;