You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
330 B
13 lines
330 B
'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)
|
|
}
|