|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
469 bytes
|
| Line | |
|---|
| 1 | var createMathOperation = require('./_createMathOperation');
|
|---|
| 2 |
|
|---|
| 3 | /**
|
|---|
| 4 | * Adds two numbers.
|
|---|
| 5 | *
|
|---|
| 6 | * @static
|
|---|
| 7 | * @memberOf _
|
|---|
| 8 | * @since 3.4.0
|
|---|
| 9 | * @category Math
|
|---|
| 10 | * @param {number} augend The first number in an addition.
|
|---|
| 11 | * @param {number} addend The second number in an addition.
|
|---|
| 12 | * @returns {number} Returns the total.
|
|---|
| 13 | * @example
|
|---|
| 14 | *
|
|---|
| 15 | * _.add(6, 4);
|
|---|
| 16 | * // => 10
|
|---|
| 17 | */
|
|---|
| 18 | var add = createMathOperation(function(augend, addend) {
|
|---|
| 19 | return augend + addend;
|
|---|
| 20 | }, 0);
|
|---|
| 21 |
|
|---|
| 22 | module.exports = add;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.