diff options
author | Marvin Borner | 2018-11-07 22:10:16 +0100 |
---|---|---|
committer | Marvin Borner | 2018-11-07 22:10:17 +0100 |
commit | 954583f3d56fbfb60321725f13ad092e536e3737 (patch) | |
tree | a0505a763797582c61fd8c2f90b422456d8874c9 /node_modules/locutus/php/var/is_int.js | |
parent | 1c355e6e956a4e507ed5436d0c814ba9c3a1deb2 (diff) |
Removed node_modules
Diffstat (limited to 'node_modules/locutus/php/var/is_int.js')
-rw-r--r-- | node_modules/locutus/php/var/is_int.js | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/node_modules/locutus/php/var/is_int.js b/node_modules/locutus/php/var/is_int.js deleted file mode 100644 index f234c4e..0000000 --- a/node_modules/locutus/php/var/is_int.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; - -module.exports = function is_int(mixedVar) { - // eslint-disable-line camelcase - // discuss at: http://locutus.io/php/is_int/ - // original by: Alex - // improved by: Kevin van Zonneveld (http://kvz.io) - // improved by: WebDevHobo (http://webdevhobo.blogspot.com/) - // improved by: RafaĆ Kukawski (http://blog.kukawski.pl) - // revised by: Matt Bradley - // bugfixed by: Kevin van Zonneveld (http://kvz.io) - // note 1: 1.0 is simplified to 1 before it can be accessed by the function, this makes - // note 1: it different from the PHP implementation. We can't fix this unfortunately. - // example 1: is_int(23) - // returns 1: true - // example 2: is_int('23') - // returns 2: false - // example 3: is_int(23.5) - // returns 3: false - // example 4: is_int(true) - // returns 4: false - - return mixedVar === +mixedVar && isFinite(mixedVar) && !(mixedVar % 1); -}; -//# sourceMappingURL=is_int.js.map
\ No newline at end of file |