The Wayback Machine - https://web.archive.org/web/20201220220022/https://github.com/lodash/lodash/blob/master/add.js
Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
18 lines (16 sloc) 427 Bytes
import createMathOperation from './.internal/createMathOperation.js'
/**
* Adds two numbers.
*
* @since 3.4.0
* @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
*/
const add = createMathOperation((augend, addend) => augend + addend, 0)
export default add
You can’t perform that action at this time.