devsite/node_modules/is-alphanumerical/index.js

13 lines
330 B
JavaScript
Raw Permalink Normal View History

2024-07-08 01:49:38 +00:00
'use strict'
var alphabetical = require('is-alphabetical')
var decimal = require('is-decimal')
module.exports = alphanumerical
// Check if the given character code, or the character code at the first
// character, is alphanumerical.
function alphanumerical(character) {
return alphabetical(character) || decimal(character)
}