2024-06-15 00:55:43 +03:00
..
2024-06-15 00:55:43 +03:00
2024-06-15 00:55:43 +03:00
2024-06-15 00:55:43 +03:00
2024-06-15 00:55:43 +03:00

is-decimal

Build Coverage Downloads Size

Check if a character is decimal.

Install

npm:

npm install is-decimal

Use

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