isInteger
isInteger implementation based on ES6 Number.isInteger specification
Installation
- download from Github
- npm:
npm install isinteger
- bower:
bower install isinteger
Description
If the target value is an integer, return true
, otherwise return false
. If the value is NaN
or infinite
, return false
.
Examples
; // false; // true; // false; // true; // false; // true; // false
For more working examples:
License
MIT