Wondering what’s next for npm?Check out our public roadmap! »

is-number-like

1.0.8 • Public • Published

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

Install

npm i is-number-like

DownloadsWeekly Downloads

623,411

Version

1.0.8

License

ISC

Last publish

Collaborators

  • avatar