lt.js 590 B

123456789101112131415161718192021222324252627282930
  1. var baseLt = require('./_baseLt'),
  2. createRelationalOperation = require('./_createRelationalOperation');
  3. /**
  4. * Checks if `value` is less than `other`.
  5. *
  6. * @static
  7. * @memberOf _
  8. * @since 3.9.0
  9. * @category Lang
  10. * @param {*} value The value to compare.
  11. * @param {*} other The other value to compare.
  12. * @returns {boolean} Returns `true` if `value` is less than `other`,
  13. * else `false`.
  14. * @see _.gt
  15. * @example
  16. *
  17. * _.lt(1, 3);
  18. * // => true
  19. *
  20. * _.lt(3, 3);
  21. * // => false
  22. *
  23. * _.lt(3, 1);
  24. * // => false
  25. */
  26. var lt = createRelationalOperation(baseLt);
  27. module.exports = lt;