is-any-letter
A small module to detect letters by checking if it has a lowercase and uppercase version.
Installation
$ npm install is-any-letter --save
Usage
In this module, a letter is any character that has an uppercase and lowercase version, so some special characters that are only lowercase or uppercase will return false.
const letter = // tests if a single charcter is a letterletter // true // tests if a string only contains a letterletter // true
Adding allowed symbols or character
It's possible to add any symbol or character to the accepted ones by adding a string with allowed characters as second argument.
letter // trueletter // true
Test
$ npm test