Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

is-decimal

1.0.4 • Public • Published

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.

Related

License

MIT © Titus Wormer

Install

npm i is-decimal

DownloadsWeekly Downloads

3,271,689

Version

1.0.4

License

MIT

Unpacked Size

4.68 kB

Total Files

4

Last publish

Collaborators

  • avatar