Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
rpm-mcarman b9f7ec4306 First Commit il y a 3 ans
..
lib First Commit il y a 3 ans
test First Commit il y a 3 ans
.editorconfig First Commit il y a 3 ans
.npmignore First Commit il y a 3 ans
.travis.yml First Commit il y a 3 ans
LICENSE First Commit il y a 3 ans
README.md First Commit il y a 3 ans
package.json First Commit il y a 3 ans
yarn.lock First Commit il y a 3 ans

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