How to use the gt function from ramda

Find comprehensive JavaScript ramda.gt code examples handpicked from public code repositorys.

7
8
9
10
11
12
13
14
15
16
17
function MysqlIterator (db, options) {
  let query = []
  let start = R.gt(R.length(options.start), 0)
    ? mysql.escape(options.start)
    : null
  let gte = R.gt(R.length(options.gte), 0) ? mysql.escape(options.gte) : null


  let end = R.gt(R.length(options.end), 0) ? mysql.escape(options.end) : null
  let lte = R.gt(R.length(options.lte), 0) ? mysql.escape(options.lte) : null

fork icon0
star icon3
watch icon0

+ 5 other calls in file

2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
* @return {Boolean}
* @see R.lt
* @example
*
*      R.gt(2, 1); //=> true
*      R.gt(2, 2); //=> false
*      R.gt(2, 3); //=> false
*      R.gt('a', 'z'); //=> false
*      R.gt('z', 'a'); //=> true
*/
fork icon0
star icon0
watch icon0

+ 107 other calls in file

594
595
596
597
598
599
600
601
602
603
604
605
606




var pred = R.where({
  a: R.equals('foo'),
  b: R.complement(R.equals('bar')),
  x: R.gt(R.__, 10),
  y: R.lt(R.__, 20)
});


log(pred({a: 'foo', b: 'xxx', x: 11, y: 19}));
fork icon0
star icon0
watch icon0

+ 9 other calls in file

1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
* @param {Function} g Another predicate
* @return {Function} a function that applies its arguments to `f` and `g` and `&&`s their outputs together.
* @see R.and
* @example
*
*      const gt10 = R.gt(R.__, 10)
*      const lt20 = R.lt(R.__, 20)
*      const f = R.both(gt10, lt20);
*      f(15); //=> true
*      f(30); //=> false
fork icon0
star icon0
watch icon2

+ 31 other calls in file

53
54
55
56
57
58
59
60
61
62

mandatoryMasks = defaultTo([1])(mandatoryMasks);
additionalMasks = defaultTo([1])(additionalMasks);
negativeMasks = defaultTo([0])(negativeMasks);

const maskCheckPositiveFunc = userMask => gt(userMask & mask, 0);
const maskCheckNegativeFunc = userMask => equals(userMask & mask, 0);

const mandatoryMasksResult = ifElse(
    is(Object),
fork icon0
star icon0
watch icon3

Other functions in ramda

Sorted by popularity

function icon

ramda.clone is the most popular function in ramda (30311 examples)