Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

checking if a character is an alphabet in js

function isLetter(str) {
  return str.length === 1 && str.match(/[a-z]/i);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #checking #character #alphabet #js
ADD COMMENT
Topic
Name
3+1 =