UNPKG

655 BJavaScriptView Raw
1var _curry2 =
2/*#__PURE__*/
3require("./internal/_curry2");
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
28var divide =
29/*#__PURE__*/
30_curry2(function divide(a, b) {
31 return a / b;
32});
33
34module.exports = divide;
\No newline at end of file