is-number-like

Checks whether provided parameter looks like a number

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
is-number-like
4151.0.87 years ago8 years agoMinified + gzip package size for is-number-like in KB

Readme

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