From 8b320f913dcac184f93c0fbd39952cf7097e3b70 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Thu, 10 Sep 2015 19:06:08 -0700 Subject: [PATCH] Remove unneeded type check from `createRound`. --- lodash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index 4bbc3b6fb..4b3944bbf 100644 --- a/lodash.js +++ b/lodash.js @@ -3654,7 +3654,7 @@ function createRound(methodName) { var func = Math[methodName]; return function(number, precision) { - precision = precision === undefined ? 0 : toInteger(precision); + precision = toInteger(precision); if (precision) { precision = pow(10, precision); return func(number * precision) / precision;