aboutsummaryrefslogtreecommitdiff
path: root/node_modules/lodash/_createRound.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/lodash/_createRound.js')
-rw-r--r--node_modules/lodash/_createRound.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/node_modules/lodash/_createRound.js b/node_modules/lodash/_createRound.js
index 74b20d408..bf9b713fc 100644
--- a/node_modules/lodash/_createRound.js
+++ b/node_modules/lodash/_createRound.js
@@ -16,7 +16,7 @@ function createRound(methodName) {
var func = Math[methodName];
return function(number, precision) {
number = toNumber(number);
- precision = nativeMin(toInteger(precision), 292);
+ precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);
if (precision) {
// Shift with exponential notation to avoid floating-point issues.
// See [MDN](https://mdn.io/round#Examples) for more details.