update
This commit is contained in:
parent
d9becc67b6
commit
9308795b8b
964 changed files with 104265 additions and 16 deletions
35
node_modules/ramda/src/subtract.js
generated
vendored
Normal file
35
node_modules/ramda/src/subtract.js
generated
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
var _curry2 =
|
||||
/*#__PURE__*/
|
||||
require("./internal/_curry2");
|
||||
/**
|
||||
* Subtracts its second argument from its first argument.
|
||||
*
|
||||
* @func
|
||||
* @memberOf R
|
||||
* @since v0.1.0
|
||||
* @category Math
|
||||
* @sig Number -> Number -> Number
|
||||
* @param {Number} a The first value.
|
||||
* @param {Number} b The second value.
|
||||
* @return {Number} The result of `a - b`.
|
||||
* @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
|
||||
* complementaryAngle(72); //=> 18
|
||||
*/
|
||||
|
||||
|
||||
var subtract =
|
||||
/*#__PURE__*/
|
||||
_curry2(function subtract(a, b) {
|
||||
return Number(a) - Number(b);
|
||||
});
|
||||
|
||||
module.exports = subtract;
|
Loading…
Add table
Add a link
Reference in a new issue