/** * lodash 3.4.2 (Custom Build) * Build: `lodash modularize exports="npm" -o ./` * Copyright 2012-2016 The Dojo Foundation * Based on Underscore.js 1.8.3 * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ /** * Adds two numbers. * * @static * @memberOf _ * @category Math * @param {number} augend The first number in an addition. * @param {number} addend The second number in an addition. * @returns {number} Returns the total. * @example * * _.add(6, 4); * // => 10 */ function add(augend, addend) { var result; if (augend !== undefined) { result = augend; } if (addend !== undefined) { result = result === undefined ? addend : (result + addend); } return result; } module.exports = add;