Answers for "js if text contains lowercase"

0

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"));
Posted by: Guest on June-06-2021
-1

js if text contains lowercase

function hasLowerCase(str) {
    return str.toUpperCase() != str;
}

console.log("HeLLO: ", hasLowerCase("HeLLO"));
console.log("HELLO: ", hasLowerCase("HELLO"));
Posted by: Guest on May-04-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language