|
|
il y a 3 ans | |
|---|---|---|
| .. | ||
| lib | il y a 3 ans | |
| test | il y a 3 ans | |
| .editorconfig | il y a 3 ans | |
| .npmignore | il y a 3 ans | |
| .travis.yml | il y a 3 ans | |
| LICENSE | il y a 3 ans | |
| README.md | il y a 3 ans | |
| package.json | il y a 3 ans | |
| yarn.lock | il y a 3 ans | |
Checks whether provided parameter looks like a number
true if val looks like a number, false otherwiseconst isNumberLike = require('is-number-like')
isNumberLike('2') // true
isNumberLike('a') // false