how to check if a value contains alphabet in js code example
Example: checking if a character is an alphabet in js
function isLetter(str) {
return str.length === 1 && str.match(/[a-z]/i);
}
function isLetter(str) {
return str.length === 1 && str.match(/[a-z]/i);
}