From 52ab48c05403360017b2c0bf063335ab9e9d0bba Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 9 Jul 2019 09:33:04 -0700 Subject: [PATCH] Use nativeIsFinite() instead of Number.isFinite(). --- lodash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index 67ff65117..e4ca07e89 100644 --- a/lodash.js +++ b/lodash.js @@ -5416,7 +5416,7 @@ return function(number, precision) { number = toNumber(number); precision = precision == null ? 0 : nativeMin(toInteger(precision), 292); - if (precision && Number.isFinite(number)) { + if (precision && nativeIsFinite(number)) { // Shift with exponential notation to avoid floating-point issues. // See [MDN](https://mdn.io/round#Examples) for more details. var pair = (toString(number) + 'e').split('e'),