Opal-Estate-Pro/node_modules/is-number-like
2019-09-13 11:27:52 +07:00
..
lib style Dashboard 2019-09-13 11:27:52 +07:00
test style Dashboard 2019-09-13 11:27:52 +07:00
.editorconfig style Dashboard 2019-09-13 11:27:52 +07:00
.npmignore style Dashboard 2019-09-13 11:27:52 +07:00
.travis.yml style Dashboard 2019-09-13 11:27:52 +07:00
LICENSE style Dashboard 2019-09-13 11:27:52 +07:00
package.json style Dashboard 2019-09-13 11:27:52 +07:00
README.md style Dashboard 2019-09-13 11:27:52 +07:00
yarn.lock style Dashboard 2019-09-13 11:27:52 +07:00

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