vmk-demo-bot / admin / node_modules / is-number-like /
..
lib init 17 days ago
test init 17 days ago
.editorconfig init 17 days ago
.npmignore init 17 days ago
.travis.yml init 17 days ago
LICENSE init 17 days ago
README.md init 17 days ago
package.json init 17 days ago
yarn.lock init 17 days 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