is-sn-integer
Check if a string or a number is an integer.
Install
npm install is-sn-integer
Usage
CommonJS
const is-sn-integer = require('is-sn-integer');
Module
import isIinteger from 'is-sn-integer';
Output
isInteger("1") //true
isInteger("1.1") //false
isInteger("2") //true
isInteger("10.5") //false
isInteger(1) //true
isInteger(10.1) //false
isInteger(NaN) //false
isInteger(undefined) //false