Sha256: e5bcacd414107834ed90478d4a9da6e6fc789e05bb880d11ecf1e5d5ce5777e7

Contents?: true

Size: 585 Bytes

Versions: 12

Compression:

Stored size: 585 Bytes

Contents

var global = require('../internals/global');
var trim = require('../internals/string-trim').trim;
var whitespaces = require('../internals/whitespaces');

var nativeParseInt = global.parseInt;
var hex = /^[+-]?0[Xx]/;
var FORCED = nativeParseInt(whitespaces + '08') !== 8 || nativeParseInt(whitespaces + '0x16') !== 22;

// `parseInt` method
// https://tc39.github.io/ecma262/#sec-parseint-string-radix
module.exports = FORCED ? function parseInt(string, radix) {
  var S = trim(String(string));
  return nativeParseInt(S, (radix >>> 0) || (hex.test(S) ? 16 : 10));
} : nativeParseInt;

Version data entries

12 entries across 12 versions & 4 rubygems

Version Path
disco_app-0.18.0 test/dummy/node_modules/core-js/internals/parse-int.js
disco_app-0.18.2 test/dummy/node_modules/core-js/internals/parse-int.js
condenser-0.0.8 lib/condenser/processors/node_modules/core-js-pure/internals/parse-int.js
jester-data-8.0.0 node_modules/core-js/internals/parse-int.js
ezii-os-5.2.1 node_modules/core-js/internals/parse-int.js
ezii-os-2.0.1 node_modules/core-js/internals/parse-int.js
ezii-os-1.1.0 node_modules/core-js/internals/parse-int.js
ezii-os-1.0.0 node_modules/core-js/internals/parse-int.js
condenser-0.0.7 lib/condenser/processors/node_modules/core-js-pure/internals/parse-int.js
ezii-os-0.0.0.1.0 node_modules/core-js/internals/parse-int.js
ezii-os-0.0.0.0.1 node_modules/core-js/internals/parse-int.js
condenser-0.0.5 lib/condenser/processors/node_modules/core-js-pure/internals/parse-int.js