Luna 4f63b4f9a0 | ||
---|---|---|
.. | ||
lib | ||
test | ||
.editorconfig | ||
.npmignore | ||
.travis.yml | ||
LICENSE | ||
README.md | ||
package.json | ||
yarn.lock |
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 -
true
ifval
looks like a number,false
otherwise
const isNumberLike = require('is-number-like')
isNumberLike('2') // true
isNumberLike('a') // false