Repository URL to install this package:
|
Version:
6.0.4 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var curry_1 = require("../fp/curry");
/**
* @name subtract
* @memberOf math
* @since 5.0.0-beta.4
* @category Math
*
* @curried 2
*
* @alias minus
* @alias sub
*
* @param {number} target number to subtract FROM
* @param {number} x number to subtract
* @return {number} target - x
*
* @example
* subtract(2, 2) //=> 0
*/
exports.default = curry_1.default(2, function (target, x) { return target - x; });
//# sourceMappingURL=subtract.js.map