MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / parseInt

Function parseInt

lib/web/jshint.js:11851–11856  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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) {

Callers 15

getOffsetsFunction · 0.85
parseCssFunction · 0.85
jshint.jsFile · 0.85
removeEscapeSequencesFunction · 0.85
numFunction · 0.85
toNumberFunction · 0.85
_nFunction · 0.85
jquery.color.jsFile · 0.85
acorn.jsFile · 0.85
tokenCharFunction · 0.85
textile.jsFile · 0.85
paddingHFunction · 0.85

Calls 1

isIterateeCallFunction · 0.85

Tested by

no test coverage detected