Bones/node_modules/is-number-like
SOUTHERNCO\x2mjbyrn 7efe7605b8 Template Upload
2017-05-17 13:45:25 -04:00
..
lib Template Upload 2017-05-17 13:45:25 -04:00
test Template Upload 2017-05-17 13:45:25 -04:00
.editorconfig Template Upload 2017-05-17 13:45:25 -04:00
.npmignore Template Upload 2017-05-17 13:45:25 -04:00
.travis.yml Template Upload 2017-05-17 13:45:25 -04:00
LICENSE Template Upload 2017-05-17 13:45:25 -04:00
package.json Template Upload 2017-05-17 13:45:25 -04:00
README.md Template Upload 2017-05-17 13:45:25 -04:00
yarn.lock Template Upload 2017-05-17 13:45:25 -04:00

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