From 8b758ee25a4cfcafbae6d8a43884eb107a557d74 Mon Sep 17 00:00:00 2001 From: James Date: Sun, 5 Apr 2015 13:42:27 +0400 Subject: [PATCH] Make `_.add` coerce `augend` and `addend` params to numbers. --- lodash.src.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.src.js b/lodash.src.js index 2838f3fde..86cf2eea1 100644 --- a/lodash.src.js +++ b/lodash.src.js @@ -11558,7 +11558,7 @@ * // => 10 */ function add(augend, addend) { - return augend + addend; + return (+augend || 0) + (+addend || 0); } /**