is-digit

1.0.2 • Public • Published

is-digit Build Status

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

Readme

Keywords

Package Sidebar

Install

npm i is-digit

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • dangvanthanh