gt.js

  1. import { baseGt, createOperation } from './internals/comparator';
  2. /**
  3. * 检查 `value` 是否大于 `other`。
  4. *
  5. * @function
  6. * @alias module:Util.gt
  7. * @since 1.0.0
  8. * @param {*} value 要比较的值。
  9. * @param {*} other 另一个要比较的值。
  10. * @returns {boolean} 如果 `value` 大于 `other` 返回 `true`,否则返回 `false`。
  11. * @example
  12. *
  13. * gt(1, 3); // false
  14. *
  15. * gt(3, 3); // false
  16. *
  17. * gt(3, 1); // true
  18. *
  19. */
  20. const gt = createOperation(baseGt);
  21. export default gt;