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.
|
|
7 years ago | |
|---|---|---|
| .. | ||
| lib | 7 years ago | |
| test | 7 years ago | |
| .editorconfig | 7 years ago | |
| .npmignore | 7 years ago | |
| .travis.yml | 7 years ago | |
| LICENSE | 7 years ago | |
| README.md | 7 years ago | |
| package.json | 7 years ago | |
| yarn.lock | 7 years ago | |
README.md
is-number-like
var looksLikeNumber = isNumberLike(val)
Checks whether provided parameter looks like a number
- val (any) - the value to check
- returns (boolean) looksLikeNumber -
trueifvallooks like a number,falseotherwise
const isNumberLike = require('is-number-like')
isNumberLike('2') // true
isNumberLike('a') // false