Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

gte.js 635B

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