Name Last Update
..
.npmignore Loading commit data...
.travis.yml Loading commit data...
LICENSE Loading commit data...
LICENSE.md Loading commit data...
README.md Loading commit data...
index.js Loading commit data...
package.json Loading commit data...
test.js Loading commit data...

is-integer build status

ES2015 (ES6) Number.isInteger polyfill implemented in ES3.

Example

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

API

var isInteger = require("is-integer")

Determines whether the provided value is an integer.

See Number.isInteger.

Install

npm install is-integer