Removed modules/contrib/media module to allow update to the core media module
[yaffs-website] / node_modules / uncss / node_modules / lodash / add.js
1 /**
2  * Adds two numbers.
3  *
4  * @static
5  * @memberOf _
6  * @category Math
7  * @param {number} augend The first number in an addition.
8  * @param {number} addend The second number in an addition.
9  * @returns {number} Returns the total.
10  * @example
11  *
12  * _.add(6, 4);
13  * // => 10
14  */
15 function add(augend, addend) {
16   var result;
17   if (augend !== undefined) {
18     result = augend;
19   }
20   if (addend !== undefined) {
21     result = result === undefined ? addend : (result + addend);
22   }
23   return result;
24 }
25
26 module.exports = add;