armansansd 3424b1927b first commit %!s(int64=2) %!d(string=hai) anos
..
lib 3424b1927b first commit %!s(int64=2) %!d(string=hai) anos
test 3424b1927b first commit %!s(int64=2) %!d(string=hai) anos
.editorconfig 3424b1927b first commit %!s(int64=2) %!d(string=hai) anos
.npmignore 3424b1927b first commit %!s(int64=2) %!d(string=hai) anos
.travis.yml 3424b1927b first commit %!s(int64=2) %!d(string=hai) anos
LICENSE 3424b1927b first commit %!s(int64=2) %!d(string=hai) anos
README.md 3424b1927b first commit %!s(int64=2) %!d(string=hai) anos
package.json 3424b1927b first commit %!s(int64=2) %!d(string=hai) anos
yarn.lock 3424b1927b first commit %!s(int64=2) %!d(string=hai) anos

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