swc/crates/swc_bundler/tests/.cache/deno/d4e8cd9d25876e2f27c7cb15c5f2bfe99ef9b071.ts
2021-11-09 20:42:49 +09:00

31 lines
691 B
TypeScript

// Loaded from https://deno.land/x/ramda@v0.27.2/source/divide.js
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 = _curry2(function divide(a, b) { return a / b; });
export default divide;