main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
658 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | var _curry2 =
|
---|
| 2 | /*#__PURE__*/
|
---|
| 3 | require("./internal/_curry2.js");
|
---|
| 4 | /**
|
---|
| 5 | * Divides two numbers. Equivalent to `a / b`.
|
---|
| 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.multiply
|
---|
| 16 | * @example
|
---|
| 17 | *
|
---|
| 18 | * R.divide(71, 100); //=> 0.71
|
---|
| 19 | *
|
---|
| 20 | * const half = R.divide(R.__, 2);
|
---|
| 21 | * half(42); //=> 21
|
---|
| 22 | *
|
---|
| 23 | * const reciprocal = R.divide(1);
|
---|
| 24 | * reciprocal(4); //=> 0.25
|
---|
| 25 | */
|
---|
| 26 |
|
---|
| 27 |
|
---|
| 28 | var divide =
|
---|
| 29 | /*#__PURE__*/
|
---|
| 30 | _curry2(function divide(a, b) {
|
---|
| 31 | return a / b;
|
---|
| 32 | });
|
---|
| 33 |
|
---|
| 34 | module.exports = divide; |
---|
Note:
See
TracBrowser
for help on using the repository browser.