Last change
on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
596 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | var baseGt = require('./_baseGt'),
|
---|
| 2 | createRelationalOperation = require('./_createRelationalOperation');
|
---|
| 3 |
|
---|
| 4 | /**
|
---|
| 5 | * Checks if `value` is greater than `other`.
|
---|
| 6 | *
|
---|
| 7 | * @static
|
---|
| 8 | * @memberOf _
|
---|
| 9 | * @since 3.9.0
|
---|
| 10 | * @category Lang
|
---|
| 11 | * @param {*} value The value to compare.
|
---|
| 12 | * @param {*} other The other value to compare.
|
---|
| 13 | * @returns {boolean} Returns `true` if `value` is greater than `other`,
|
---|
| 14 | * else `false`.
|
---|
| 15 | * @see _.lt
|
---|
| 16 | * @example
|
---|
| 17 | *
|
---|
| 18 | * _.gt(3, 1);
|
---|
| 19 | * // => true
|
---|
| 20 | *
|
---|
| 21 | * _.gt(3, 3);
|
---|
| 22 | * // => false
|
---|
| 23 | *
|
---|
| 24 | * _.gt(1, 3);
|
---|
| 25 | * // => false
|
---|
| 26 | */
|
---|
| 27 | var gt = createRelationalOperation(baseGt);
|
---|
| 28 |
|
---|
| 29 | module.exports = gt;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.