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
Check if a character is decimal.
Install
npm:
npm install is-decimalUse
var decimal = require('is-decimal')
decimal('0') // => true
decimal('9') // => true
decimal('a') // => false
decimal('💩') // => falseAPI
decimal(character|code)
Check whether the given character code (number), or the character code at the
first position (string), is decimal.