summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/math/octdec.js.map
blob: 7b10ee2ff8b8c1301360c79f7bf5088c1f66e748 (plain) (blame)
1
{"version":3,"sources":["../../../src/php/math/octdec.js"],"names":["module","exports","octdec","octString","replace","parseInt"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,MAAT,CAAiBC,SAAjB,EAA4B;AAC3C;AACA;AACA;AACA;;AAEAA,cAAY,CAACA,YAAY,EAAb,EAAiBC,OAAjB,CAAyB,UAAzB,EAAqC,EAArC,CAAZ;AACA,SAAOC,SAASF,SAAT,EAAoB,CAApB,CAAP;AACD,CARD","file":"octdec.js","sourcesContent":["module.exports = function octdec (octString) {\n  //  discuss at: http://locutus.io/php/octdec/\n  // original by: Philippe Baumann\n  //   example 1: octdec('77')\n  //   returns 1: 63\n\n  octString = (octString + '').replace(/[^0-7]/gi, '')\n  return parseInt(octString, 8)\n}\n"]}