index.js 330 B

123456789101112
  1. 'use strict'
  2. var alphabetical = require('is-alphabetical')
  3. var decimal = require('is-decimal')
  4. module.exports = alphanumerical
  5. // Check if the given character code, or the character code at the first
  6. // character, is alphanumerical.
  7. function alphanumerical(character) {
  8. return alphabetical(character) || decimal(character)
  9. }