is-digit
v1.0.2
Published
Check something is digit
Downloads
4
Readme
is-digit
Check something is digit
Install
# yarn (recommed)
$ yarn add is-digit
# npm
$ npm install --save is-digit
Usage
const isDigit = require('is-digit')
isDigit('9')
//=> true
isDigit(' ')
//=> false
isDigit(8)
//=> true
API
isDigit(input)
input
Type: Any string
, number
, object
, array
License
MIT © Dang Van Thanh