Files
Rich Trott 31f572c3ea 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-09-05 12:50:01 -04:00
..
2017-09-05 12:49:53 -04:00
2017-09-05 12:50:01 -04:00
2017-09-05 12:49:53 -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