diff options
Diffstat (limited to 'node_modules/locutus/php/var/is_long.js')
-rw-r--r-- | node_modules/locutus/php/var/is_long.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/node_modules/locutus/php/var/is_long.js b/node_modules/locutus/php/var/is_long.js new file mode 100644 index 0000000..848e8b8 --- /dev/null +++ b/node_modules/locutus/php/var/is_long.js @@ -0,0 +1,15 @@ +'use strict'; + +module.exports = function is_long(mixedVar) { + // eslint-disable-line camelcase + // discuss at: http://locutus.io/php/is_long/ + // original by: Paulo Freitas + // 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_long(186.31) + // returns 1: true + + var _isFloat = require('../var/is_float'); + return _isFloat(mixedVar); +}; +//# sourceMappingURL=is_long.js.map
\ No newline at end of file |