Answers for "javascript string contains lowercase"

0

regex for lowercase letters js

function hasLowerCase(str) {
    return (/[a-z]/.test(str));
}
Posted by: Guest on July-22-2020
1

javascript string to lowercase

var string = "TO loWer CASE";
console.log(string.toLowerCase()); // to lower case
Posted by: Guest on June-19-2021
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

Code answers related to "javascript string contains lowercase"

Code answers related to "Javascript"

Browse Popular Code Answers by Language