biobulkbende.org/node_modules/is-number-like
Tancre 0efda7fffe structure, layout and automation 2020-09-16 14:23:28 +02:00
..
lib structure, layout and automation 2020-09-16 14:23:28 +02:00
test structure, layout and automation 2020-09-16 14:23:28 +02:00
.editorconfig structure, layout and automation 2020-09-16 14:23:28 +02:00
.npmignore structure, layout and automation 2020-09-16 14:23:28 +02:00
.travis.yml structure, layout and automation 2020-09-16 14:23:28 +02:00
LICENSE structure, layout and automation 2020-09-16 14:23:28 +02:00
README.md structure, layout and automation 2020-09-16 14:23:28 +02:00
package.json structure, layout and automation 2020-09-16 14:23:28 +02:00
yarn.lock structure, layout and automation 2020-09-16 14:23:28 +02: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