1 | var _curry2 =
|
2 | /*#__PURE__*/
|
3 | require("./internal/_curry2");
|
4 | /**
|
5 | * Subtracts its second argument from its first argument.
|
6 | *
|
7 | * @func
|
8 | * @memberOf R
|
9 | * @since v0.1.0
|
10 | * @category Math
|
11 | * @sig Number -> Number -> Number
|
12 | * @param {Number} a The first value.
|
13 | * @param {Number} b The second value.
|
14 | * @return {Number} The result of `a - b`.
|
15 | * @see R.add
|
16 | * @example
|
17 | *
|
18 | * R.subtract(10, 8); //=> 2
|
19 | *
|
20 | * const minus5 = R.subtract(R.__, 5);
|
21 | * minus5(17); //=> 12
|
22 | *
|
23 | * const complementaryAngle = R.subtract(90);
|
24 | * complementaryAngle(30); //=> 60
|
25 | * complementaryAngle(72); //=> 18
|
26 | */
|
27 |
|
28 |
|
29 | var subtract =
|
30 | /*#__PURE__*/
|
31 | _curry2(function subtract(a, b) {
|
32 | return Number(a) - Number(b);
|
33 | });
|
34 |
|
35 | module.exports = subtract; |
\ | No newline at end of file |