Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

compare string camelcase and lowercase javascript

function sameCase(str) {
  return /^[A-Z]+$/.test(str) || /^[a-z]+$/.test(str);
}
Source by www.textbotonline.com #
 
PREVIOUS NEXT
Tagged: #compare #string #camelcase #lowercase #javascript
ADD COMMENT
Topic
Name
1+3 =