JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 17408306
  • Score
    100M100P100Q266113F
  • 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 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