.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / is-alphabetical / index.js
1 'use strict'
2
3 module.exports = alphabetical
4
5 // Check if the given character code, or the character code at the first
6 // character, is alphabetical.
7 function alphabetical(character) {
8   var code = typeof character === 'string' ? character.charCodeAt(0) : character
9
10   return (
11     (code >= 97 && code <= 122) /* a-z */ ||
12     (code >= 65 && code <= 90) /* A-Z */
13   )
14 }