JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 17221968
  • Score
    100M100P100Q277130F
  • License MIT

Check if a character is decimal

Package Exports

  • is-decimal

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-decimal) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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