mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Make _.add coerce augend and addend params to numbers.
This commit is contained in:
@@ -11558,7 +11558,7 @@
|
|||||||
* // => 10
|
* // => 10
|
||||||
*/
|
*/
|
||||||
function add(augend, addend) {
|
function add(augend, addend) {
|
||||||
return augend + addend;
|
return (+augend || 0) + (+addend || 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user