Skip to content
ES2015 (ES6) Number.isInteger polyfill
JavaScript
Latest commit 7258292 Sep 1, 2015 @parshap 1.0.6
Failed to load latest commit information.
.gitignore Add tests Aug 30, 2013
.travis.yml Travis: Test 0.12 and iojs Aug 27, 2015
LICENSE Use WTFPL license Sep 1, 2015
README.md Improve readme Aug 27, 2015
index.js Handle big numbers Aug 27, 2015
package.json 1.0.6 Sep 1, 2015
test.js Refactor tests Aug 27, 2015

README.md

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
Something went wrong with that request. Please try again.