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