gt.js 464 B

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