Make _.add coerce augend and addend params to numbers.

This commit is contained in:
James
2015-04-05 13:42:27 +04:00
committed by jdalton
parent 81c24a8478
commit 8b758ee25a

View File

@@ -11558,7 +11558,7 @@
* // => 10 * // => 10
*/ */
function add(augend, addend) { function add(augend, addend) {
return augend + addend; return (+augend || 0) + (+addend || 0);
} }
/** /**