Last change
on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
511 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | var createMathOperation = require('./_createMathOperation');
|
---|
| 2 |
|
---|
| 3 | /**
|
---|
| 4 | * Subtract two numbers.
|
---|
| 5 | *
|
---|
| 6 | * @static
|
---|
| 7 | * @memberOf _
|
---|
| 8 | * @since 4.0.0
|
---|
| 9 | * @category Math
|
---|
| 10 | * @param {number} minuend The first number in a subtraction.
|
---|
| 11 | * @param {number} subtrahend The second number in a subtraction.
|
---|
| 12 | * @returns {number} Returns the difference.
|
---|
| 13 | * @example
|
---|
| 14 | *
|
---|
| 15 | * _.subtract(6, 4);
|
---|
| 16 | * // => 2
|
---|
| 17 | */
|
---|
| 18 | var subtract = createMathOperation(function(minuend, subtrahend) {
|
---|
| 19 | return minuend - subtrahend;
|
---|
| 20 | }, 0);
|
---|
| 21 |
|
---|
| 22 | module.exports = subtract;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.