mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Update ESLint to 7.0.0-alpha.0 PR-URL: https://github.com/nodejs/node/pull/31400 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
is-alphabetical
Check if a character is alphabetical.
Install
npm:
npm install is-alphabetical
Use
var alphabetical = require('is-alphabetical')
alphabetical('a') // => true
alphabetical('B') // => true
alphabetical('0') // => false
alphabetical('💩') // => false
API
alphabetical(character|code)
Check whether the given character code (number), or the character code at the
first position (string), is alphabetical.