You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sigonasr2
0785506fad
|
4 years ago | |
---|---|---|
.. | ||
test | 4 years ago | |
.npmignore | 4 years ago | |
LICENSE | 4 years ago | |
README.md | 4 years ago | |
index.js | 4 years ago | |
package.json | 4 years ago |
README.md
isNumber
isNumber
is a super tiny module that provides a test to see if a value is a finite number.
By super tiny, I mean like a single line -- however, I tend to use this somewhat frequently, so module it is!
var isNumber = require("isnumber")
isNumber(13) // true
isNumber("1241.12") // true
isNumber(0xff) // true
isNumber(Infinity) // false
isNumber("cat") // false
isNumber({foo: "bar"}) // false
LICENSE
MIT