You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
rdrew 1440706ce3 fixed gulp 6 years ago
..
lib fixed gulp 6 years ago
test fixed gulp 6 years ago
.editorconfig fixed gulp 6 years ago
.npmignore fixed gulp 6 years ago
.travis.yml fixed gulp 6 years ago
LICENSE fixed gulp 6 years ago
README.md fixed gulp 6 years ago
package.json fixed gulp 6 years ago
yarn.lock fixed gulp 6 years ago

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