Negligent Pachinko Machine

    es6-number

    0.0.2 • Public • Published

    es6-number

    NPM

    Check if a value is a number, including every 'number' type

    Install

    $ npm install --save es6-number
    

    Usage

    const isNumber = require('es6-number')
     
    console.log(isNumber(-1))
    // => true
     
    console.log(isNumber(0))
    // => true
     
    console.log(isNumber(1))
    // => true
     
    console.log(isNumber('123'))
    // => false
     
    console.log(isNumber(Infinity))
    // => true
     
    console.log(isNumber(-Infinity))
    // => true
     
    console.log(isNumber(NaN))
    // => false
     
    console.log(isNumber(null))
    // => false

    License

    MIT © Nicolás Quiroz

    Install

    npm i es6-number

    DownloadsWeekly Downloads

    3

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • nhsz