Skip to content

add ​

js
_.add(augend, addend)

将两个数字相加。

¥Adds two numbers.

新增于 ​

¥Since

3.4.0

参数 ​

¥Arguments

  1. augend (数值):加法中的第一个数字。

    ¥augend (number): The first number in an addition.

  2. addend (数值):加法中的第二个数字。

    ¥addend (number): The second number in an addition.

返回 ​

¥Returns

(数值):返回总数。

¥(number): Returns the total.

示例 ​

¥Example

js
_.add(6, 4);
// => 10

Lodash v4.17 中文网 - 粤ICP备13048890号