armansansd 3424b1927b first commit il y a 2 ans
..
lib 3424b1927b first commit il y a 2 ans
test 3424b1927b first commit il y a 2 ans
.editorconfig 3424b1927b first commit il y a 2 ans
.npmignore 3424b1927b first commit il y a 2 ans
.travis.yml 3424b1927b first commit il y a 2 ans
LICENSE 3424b1927b first commit il y a 2 ans
README.md 3424b1927b first commit il y a 2 ans
package.json 3424b1927b first commit il y a 2 ans
yarn.lock 3424b1927b first commit il y a 2 ans

README.md

is-number-like

Build Status js-standard-style npm version Coverage Status

var looksLikeNumber = isNumberLike(val)

Checks whether provided parameter looks like a number

  • val (any) - the value to check
  • returns (boolean) looksLikeNumber - true if val looks like a number, false otherwise
const isNumberLike = require('is-number-like')
isNumberLike('2') // true
isNumberLike('a') // false