armansansd 3424b1927b first commit пре 2 година
..
lib 3424b1927b first commit пре 2 година
test 3424b1927b first commit пре 2 година
.editorconfig 3424b1927b first commit пре 2 година
.npmignore 3424b1927b first commit пре 2 година
.travis.yml 3424b1927b first commit пре 2 година
LICENSE 3424b1927b first commit пре 2 година
README.md 3424b1927b first commit пре 2 година
package.json 3424b1927b first commit пре 2 година
yarn.lock 3424b1927b first commit пре 2 година

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