@f/is-number

Check if a value is a number

Stats

StarsIssuesVersionUpdatedCreatedSize
@f/is-number
001.1.16 years ago6 years agoMinified + gzip package size for @f/is-number in KB

Readme

is-number

Build status Git tag NPM version Code style

Check if a value is a number

Installation

$ npm install @f/is-number

Usage

var isNumber = require('@f/is-number')

isNumber(1)
isNumber(NaN)
!isNumber('test')
!isNumber('10')

API

isNumber(value)

  • value - The value to be checked for numberness

Returns: Boolean value indicating whether or not value is a number.

License

MIT

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.