How to use the subtract function from ramda

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

31
32
33
34
35
36
37
38
39
40
41
42
43
console.log(R.update(1, '___', [100, 200, 300]));


// https://ramdajs.com/docs/#adjust
console.log('\n=== adjust ===');


console.log(R.adjust(1, R.subtract(__, 10), [100, 200, 300]));


const adjustSubtract = R.adjust(__, R.subtract(__, 10));
const uncurryAdjustSubtract = R.uncurryN(2, adjustSubtract);

fork icon0
star icon0
watch icon0

+ 2 other calls in file

1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
* @category Math
* @sig Number -> Number -> Number
* @param {Number} a
* @param {Number} b
* @return {Number}
* @see R.subtract
* @example
*
*      R.add(2, 3);       //=>  5
*      R.add(7)(10);      //=> 17
fork icon0
star icon0
watch icon0

+ 71 other calls in file

12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
* @see R.add
* @example
*
*      R.subtract(10, 8); //=> 2
*
*      const minus5 = R.subtract(R.__, 5);
*      minus5(17); //=> 12
*
*      const complementaryAngle = R.subtract(90);
*      complementaryAngle(30); //=> 60
fork icon0
star icon0
watch icon2

+ 15 other calls in file

Other functions in ramda

Sorted by popularity

function icon

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