All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.core-js.modules._parse-int.js Maven / Gradle / Ivy

The newest version!
var $parseInt = require('./_global').parseInt;
var $trim = require('./_string-trim').trim;
var ws = require('./_string-ws');
var hex = /^[-+]?0[xX]/;

module.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? function parseInt(str, radix) {
  var string = $trim(String(str), 3);
  return $parseInt(string, (radix >>> 0) || (hex.test(string) ? 16 : 10));
} : $parseInt;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy