source: node_modules/ramda/es/divide.js

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: 638 bytes
Line 
1import _curry2 from "./internal/_curry2.js";
2/**
3 * Divides two numbers. Equivalent to `a / b`.
4 *
5 * @func
6 * @memberOf R
7 * @since v0.1.0
8 * @category Math
9 * @sig Number -> Number -> Number
10 * @param {Number} a The first value.
11 * @param {Number} b The second value.
12 * @return {Number} The result of `a / b`.
13 * @see R.multiply
14 * @example
15 *
16 * R.divide(71, 100); //=> 0.71
17 *
18 * const half = R.divide(R.__, 2);
19 * half(42); //=> 21
20 *
21 * const reciprocal = R.divide(1);
22 * reciprocal(4); //=> 0.25
23 */
24
25var divide =
26/*#__PURE__*/
27_curry2(function divide(a, b) {
28 return a / b;
29});
30
31export default divide;
Note: See TracBrowser for help on using the repository browser.