ramda-adjunct
Version:
Ramda Adjunct is the most popular and most comprehensive set of utilities for use with Ramda, providing a variety of useful, well tested functions with excellent documentation.
22 lines (21 loc) • 693 B
JavaScript
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = require("ramda");
/**
* Subtracts its first argument from its second argument.
*
* @func subtractNum
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/2.22.0|v2.22.0}
* @category Math
* @sig Number -> Number -> Number
* @param {number} subtrahend the number to subtract
* @param {number} minuend the number to subtract from
* @return {number} A number representing the difference of subtracting the subtrahend from the minuend
* @example
*
* RA.subtractNum(3, 5); //=> 2
*/
var subtractNum = (0, _ramda.flip)(_ramda.subtract);
var _default = exports["default"] = subtractNum;
;