Wondering what’s next for npm?Check out our public roadmap! »

    is-integer
    DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/is-integer package

    1.0.7 • Public • Published

    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
    

    Install

    npm i is-integer

    DownloadsWeekly Downloads

    214,064

    Version

    1.0.7

    License

    WTFPL OR ISC

    Last publish

    Collaborators

    • avatar