* Converts `string` to an integer of the specified radix. If `radix` is * `undefined` or `0`, a `radix` of `10` is used unless `value` is a hexadecimal, * in which case a `radix` of `16` is used. * * **Note:** This method aligns with the [ES5 implementation](https://es5.github.io
(string, radix, guard)
| 11849 | * // => [6, 8, 10] |
| 11850 | */ |
| 11851 | function parseInt(string, radix, guard) { |
| 11852 | if (guard && isIterateeCall(string, radix, guard)) { |
| 11853 | radix = 0; |
| 11854 | } |
| 11855 | return nativeParseInt(string, radix); |
| 11856 | } |
| 11857 | // Fallback for environments with pre-ES5 implementations. |
| 11858 | if (nativeParseInt(whitespace + '08') != 8) { |
| 11859 | parseInt = function(string, radix, guard) { |
no test coverage detected