How to use the lt function from ramda

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

2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
* @category Relation
* @sig Ord a => a -> a -> Boolean
* @param {*} a
* @param {*} b
* @return {Boolean}
* @see R.lt
* @example
*
*      R.gt(2, 1); //=> true
*      R.gt(2, 2); //=> false
fork icon0
star icon0
watch icon0

+ 107 other calls in file

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}));
log(pred({a: 'xxx', b: 'xxx', x: 11, y: 19}));
fork icon0
star icon0
watch icon0

+ 9 other calls in file

1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
* @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

Other functions in ramda

Sorted by popularity

function icon

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