mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
Bump to v3.4.0.
This commit is contained in:
22
math/add.js
Normal file
22
math/add.js
Normal file
@@ -0,0 +1,22 @@
|
||||
define([], function() {
|
||||
|
||||
/**
|
||||
* Adds two numbers.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Math
|
||||
* @param {number} augend The first number to add.
|
||||
* @param {number} addend The second number to add.
|
||||
* @returns {number} Returns the sum.
|
||||
* @example
|
||||
*
|
||||
* _.add(6, 4);
|
||||
* // => 10
|
||||
*/
|
||||
function add(augend, addend) {
|
||||
return augend + addend;
|
||||
}
|
||||
|
||||
return add;
|
||||
});
|
||||
Reference in New Issue
Block a user