Files
node/tools/eslint/node_modules/is-decimal
Rich Trott 5e952182e7 tools: update to ESLint 4.3.0
PR-URL: https://github.com/nodejs/node/pull/14417
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Refael Ackermann <refack@gmail.com>
2017-07-27 23:30:39 +02:00
..
2017-07-27 23:30:39 +02:00
2017-04-25 00:06:17 +03:00
2017-07-27 23:30:39 +02:00
2017-07-27 23:30:39 +02: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