is-integer

Test if something is an integer (ES6 Polyfill)

npm install is-integer
8 downloads in the last week
8 downloads in the last month

is-integer

Polyfill for ES6 isInteger.

Example

var isInteger = require("is-integer");
isInteger("hello") // -> false
isInteger(4) // -> true
isInteger(4.0) // -> true
isInteger(4.1) // -> false

Installation

npm install is-integer
npm loves you