number-is-integer
ES2015
Number.isInteger()
ponyfill
Install
$ npm install number-is-integer
Usage
const numberIsInteger = require('number-is-integer');
numberIsInteger(1);
//=> true
numberIsInteger(1.5);
//=> false
Related
-
is-safe-integer - ES2015
Number.isSafeInteger()
ponyfill - number-is-float - Check if something is a float