test-action-debian-package/node_modules/ramda/es/divide.js

31 lines
638 B
JavaScript
Raw Normal View History

2020-03-26 14:37:35 +00:00
import _curry2 from "./internal/_curry2.js";
/**
* Divides two numbers. Equivalent to `a / b`.
*
* @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.multiply
* @example
*
* R.divide(71, 100); //=> 0.71
*
* const half = R.divide(R.__, 2);
* half(42); //=> 21
*
* const reciprocal = R.divide(1);
* reciprocal(4); //=> 0.25
*/
var divide =
/*#__PURE__*/
_curry2(function divide(a, b) {
return a / b;
});
export default divide;