Opal-Estate-Pro/node_modules/is-number-like
2019-09-13 09:44:33 +07:00
..
lib uapte 2019-09-13 09:44:33 +07:00
test uapte 2019-09-13 09:44:33 +07:00
.editorconfig uapte 2019-09-13 09:44:33 +07:00
.npmignore uapte 2019-09-13 09:44:33 +07:00
.travis.yml uapte 2019-09-13 09:44:33 +07:00
LICENSE uapte 2019-09-13 09:44:33 +07:00
package.json uapte 2019-09-13 09:44:33 +07:00
README.md uapte 2019-09-13 09:44:33 +07:00
yarn.lock uapte 2019-09-13 09:44:33 +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