Files
node/tools/node_modules/eslint/node_modules/is-decimal
Yuta Hiroto 8c6d1a0686 tools: update ESLint to 5.2.0
PR-URL: https://github.com/nodejs/node/pull/21817
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: James M Snell <jasnell@gmail.com>
2018-07-28 06:05:49 -07:00
..
2018-06-24 12:43:54 -04:00
2018-07-28 06:05:49 -07:00
2018-06-24 12:43:54 -04:00

is-decimal Build Status Coverage Status

Check if a character is decimal.

Installation

npm:

npm install is-decimal

Usage

var decimal = require('is-decimal')

decimal('0') // => true
decimal('9') // => true
decimal('a') // => false
decimal('💩') // => false

API

decimal(character|code)

Check whether the given character code (number), or the character code at the first position (string), is decimal.

License

MIT © Titus Wormer