blob: f3ab89842b7b1636bb3cafded0d3ca0c0a11541f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
'use strict';
module.exports = function is_integer(mixedVar) {
// eslint-disable-line camelcase
// discuss at: http://locutus.io/php/is_integer/
// 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_integer(186.31)
// returns 1: false
// example 2: is_integer(12)
// returns 2: true
var _isInt = require('../var/is_int');
return _isInt(mixedVar);
};
//# sourceMappingURL=is_integer.js.map
|