armansansd 3424b1927b first commit 2 years ago
..
lib 3424b1927b first commit 2 years ago
test 3424b1927b first commit 2 years ago
.editorconfig 3424b1927b first commit 2 years ago
.npmignore 3424b1927b first commit 2 years ago
.travis.yml 3424b1927b first commit 2 years ago
LICENSE 3424b1927b first commit 2 years ago
README.md 3424b1927b first commit 2 years ago
package.json 3424b1927b first commit 2 years ago
yarn.lock 3424b1927b first commit 2 years ago

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