lunaisadev-website-old/node_modules/is-number-like
Luna 4f63b4f9a0 first commit 2021-07-27 18:40:12 -07:00
..
lib first commit 2021-07-27 18:40:12 -07:00
test first commit 2021-07-27 18:40:12 -07:00
.editorconfig first commit 2021-07-27 18:40:12 -07:00
.npmignore first commit 2021-07-27 18:40:12 -07:00
.travis.yml first commit 2021-07-27 18:40:12 -07:00
LICENSE first commit 2021-07-27 18:40:12 -07:00
README.md first commit 2021-07-27 18:40:12 -07:00
package.json first commit 2021-07-27 18:40:12 -07:00
yarn.lock first commit 2021-07-27 18:40:12 -07:00

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