1.0.2 • Published 7 years ago
is-digit v1.0.2
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