summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/var/is_int.js.map
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/locutus/php/var/is_int.js.map')
-rw-r--r--node_modules/locutus/php/var/is_int.js.map1
1 files changed, 1 insertions, 0 deletions
diff --git a/node_modules/locutus/php/var/is_int.js.map b/node_modules/locutus/php/var/is_int.js.map
new file mode 100644
index 0000000..93801e9
--- /dev/null
+++ b/node_modules/locutus/php/var/is_int.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["../../../src/php/var/is_int.js"],"names":["module","exports","is_int","mixedVar","isFinite"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,MAAT,CAAiBC,QAAjB,EAA2B;AAAE;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAOA,aAAa,CAACA,QAAd,IAA0BC,SAASD,QAAT,CAA1B,IAAgD,EAAEA,WAAW,CAAb,CAAvD;AACD,CApBD","file":"is_int.js","sourcesContent":["module.exports = function is_int (mixedVar) { // eslint-disable-line camelcase\n // discuss at: http://locutus.io/php/is_int/\n // original by: Alex\n // improved by: Kevin van Zonneveld (http://kvz.io)\n // improved by: WebDevHobo (http://webdevhobo.blogspot.com/)\n // improved by: RafaƂ Kukawski (http://blog.kukawski.pl)\n // revised by: Matt Bradley\n // bugfixed by: Kevin van Zonneveld (http://kvz.io)\n // note 1: 1.0 is simplified to 1 before it can be accessed by the function, this makes\n // note 1: it different from the PHP implementation. We can't fix this unfortunately.\n // example 1: is_int(23)\n // returns 1: true\n // example 2: is_int('23')\n // returns 2: false\n // example 3: is_int(23.5)\n // returns 3: false\n // example 4: is_int(true)\n // returns 4: false\n\n return mixedVar === +mixedVar && isFinite(mixedVar) && !(mixedVar % 1)\n}\n"]} \ No newline at end of file