node/tools/eslint/node_modules/is-alphanumerical/index.js
Michaël Zasso 2eff28fb7a
tools: move ESLint to tools/eslint
Greatly simplify how ESLint and its plugins are installed.

PR-URL: https://github.com/nodejs/node/pull/53413
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2024-06-19 19:54:08 +00:00

12 lines
330 B
JavaScript

'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)
}