Skip to content

QuqqU/is-real

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

is-real

Is this real?

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

Download

$ npm install 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.0)); // 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

QuqqU

Releases

No releases published

Packages

No packages published