📜  js测试字母小写 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:04:12.008000             🧑  作者: Mango

代码示例4
function hasLowerCase(str) {
    return str.toUpperCase() != str;
}

console.log("HeLLO: ", hasLowerCase("HeLLO"));
console.log("HELLO: ", hasLowerCase("HELLO"));