gte.js 608 B

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