From 4343f4d2294a1117d8721c6f4834f54f0250074f Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Thu, 28 Feb 2013 02:49:54 -0800 Subject: [PATCH] Tweak `_.parseInt` docs. Former-commit-id: 960256bab36fbecb8aa06679c10d8033e2013de2 --- lodash.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lodash.js b/lodash.js index ea827e880..c43e9d419 100644 --- a/lodash.js +++ b/lodash.js @@ -2111,9 +2111,9 @@ } /** - * Parses the given `value` into an integer of the specified `radix`. + * Converts the given `value` into an integer of the specified `radix`. * - * Note: This method avoids differences in ES3 and ES5 `parseInt` + * Note: This method avoids differences in native ES3 and ES5 `parseInt` * implementations. See http://es5.github.com/#E. * * @static @@ -2127,7 +2127,7 @@ * // => 8 */ var parseInt = nativeParseInt('08') == 8 ? nativeParseInt : function(value, radix) { - // Firefox and Opera have not changed to the ES5 specified implementation of `parseInt` + // Firefox and Opera still follow the ES3 specified implementation of `parseInt` return nativeParseInt(isString(value) ? value.replace(/^0+(?=.$)/, '') : value, radix || 0); };