diff --git a/lodash.js b/lodash.js index 91a8029c2..124039ac9 100644 --- a/lodash.js +++ b/lodash.js @@ -9444,7 +9444,11 @@ // Firefox < 21 and Opera < 15 follow ES3 for `parseInt` and // Chrome fails to trim leading whitespace characters. // See https://code.google.com/p/v8/issues/detail?id=3109. - radix = (guard && isIterateeCall(string, radix, guard)) ? 0 : +radix; + if (guard ? isIterateeCall(string, radix, guard) : radix == null) { + radix = 0; + } else if (radix) { + radix = +radix; + } string = trim(string); return nativeParseInt(string, radix || (reHexPrefix.test(string) ? 16 : 10)); };