MyRepo-Ums/node_modules/is-number-like
2024-01-19 11:09:11 +01:00
..
lib first commit 2024-01-19 11:09:11 +01:00
test first commit 2024-01-19 11:09:11 +01:00
.editorconfig first commit 2024-01-19 11:09:11 +01:00
.npmignore first commit 2024-01-19 11:09:11 +01:00
.travis.yml first commit 2024-01-19 11:09:11 +01:00
LICENSE first commit 2024-01-19 11:09:11 +01:00
package.json first commit 2024-01-19 11:09:11 +01:00
README.md first commit 2024-01-19 11:09:11 +01:00
yarn.lock first commit 2024-01-19 11:09:11 +01: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