Sha256: fdfe8abb7e8f11a50a489bdded125bf23f63aaf7c478f1386b520f9f28408a2e

Contents?: true

Size: 403 Bytes

Versions: 320

Compression:

Stored size: 403 Bytes

Contents

var $parseInt = require('./_global').parseInt
  , $trim     = require('./_string-trim').trim
  , ws        = require('./_string-ws')
  , 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;

Version data entries

320 entries across 8 versions & 3 rubygems

Version Path
babel-schmooze-sprockets-0.1.0 node_modules/babel-helpers/node_modules/core-js/library/modules/_parse-int.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-helper-remap-async-to-generator/node_modules/core-js/modules/_parse-int.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-helper-remap-async-to-generator/node_modules/core-js/library/modules/_parse-int.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-generator/node_modules/core-js/modules/_parse-int.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-generator/node_modules/core-js/library/modules/_parse-int.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-core/node_modules/core-js/modules/_parse-int.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-core/node_modules/core-js/library/modules/_parse-int.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-register/node_modules/core-js/library/modules/_parse-int.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-polyfill/node_modules/core-js/modules/_parse-int.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-plugin-transform-es3-property-literals/node_modules/core-js/modules/_parse-int.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-polyfill/node_modules/core-js/library/modules/_parse-int.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-plugin-transform-function-bind/node_modules/core-js/modules/_parse-int.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-plugin-transform-function-bind/node_modules/core-js/library/modules/_parse-int.js
babel-schmooze-sprockets-0.1.0 node_modules/babel-register/node_modules/core-js/modules/_parse-int.js
babel-schmooze-sprockets-0.1.0.alpha.3 node_modules/babel-polyfill/node_modules/core-js/library/modules/_parse-int.js
babel-schmooze-sprockets-0.1.0.alpha.3 node_modules/babel-polyfill/node_modules/core-js/modules/_parse-int.js
babel-schmooze-sprockets-0.1.0.alpha.3 node_modules/babel-register/node_modules/core-js/modules/_parse-int.js
babel-schmooze-sprockets-0.1.0.alpha.3 node_modules/babel-register/node_modules/core-js/library/modules/_parse-int.js
babel-schmooze-sprockets-0.1.0.alpha.2 node_modules/babel-register/node_modules/core-js/modules/_parse-int.js
babel-schmooze-sprockets-0.1.0.alpha.2 node_modules/babel-register/node_modules/core-js/library/modules/_parse-int.js