is-number-like
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/is-number-like package

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

Package Sidebar

Install

npm i is-number-like

Weekly Downloads

1,080,351

Version

1.0.8

License

ISC

Last publish

Collaborators

  • vigour-io