mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
Add comment to _.parseInt. [ci skip]
This commit is contained in:
@@ -6053,7 +6053,7 @@
|
||||
* // => 8
|
||||
*/
|
||||
var parseInt = nativeParseInt(whitespace + '08') == 8 ? nativeParseInt : function(value, radix) {
|
||||
// Firefox and Opera still follow the ES3 specified implementation of `parseInt`
|
||||
// Firefox < 21 and Opera < 15 follow the ES3 specified implementation of `parseInt`
|
||||
return nativeParseInt(isString(value) ? value.replace(reLeadingSpacesAndZeros, '') : value, radix || 0);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user