You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
574 B

4 years ago
  1. import _curry2 from "./internal/_curry2.js";
  2. /**
  3. * Returns `true` if the first argument is less than the second; `false`
  4. * otherwise.
  5. *
  6. * @func
  7. * @memberOf R
  8. * @since v0.1.0
  9. * @category Relation
  10. * @sig Ord a => a -> a -> Boolean
  11. * @param {*} a
  12. * @param {*} b
  13. * @return {Boolean}
  14. * @see R.gt
  15. * @example
  16. *
  17. * R.lt(2, 1); //=> false
  18. * R.lt(2, 2); //=> false
  19. * R.lt(2, 3); //=> true
  20. * R.lt('a', 'z'); //=> true
  21. * R.lt('z', 'a'); //=> false
  22. */
  23. var lt =
  24. /*#__PURE__*/
  25. _curry2(function lt(a, b) {
  26. return a < b;
  27. });
  28. export default lt;