is-real

2.4.0 • Public • Published

is-real

Is this real?

You can easily figure out which string is a real number with is-real.

Usage

const is_real = require('is_real')

console.log(is_real(123)) // true
console.log(is_real(+123.12)) // true
console.log(is_real(-123.00)) // true
console.log(is_real('123')) // true
console.log(is_real('abc')) // false

Dependencies

  • Nothing

If there's no problem using javascript and npm, it will work well.

License

  • MIT License

You can use it the way you want.

Contact

/is-real/

    Package Sidebar

    Install

    npm i is-real

    Weekly Downloads

    10

    Version

    2.4.0

    License

    MIT

    Unpacked Size

    2.46 kB

    Total Files

    4

    Last publish

    Collaborators

    • quqqu