Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if string contains lowercase javascript

// A minified version of the other one:
const hasLowerCase= s => s.toUpperCase() != s;

console.log("HeLLO: ", hasLowerCase("HeLLO"));
console.log("HELLO: ", hasLowerCase("HELLO"));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #string #lowercase #javascript
ADD COMMENT
Topic
Name
4+5 =