// A minified version of the other one: const hasLowerCase= s => s.toUpperCase() != s; console.log("HeLLO: ", hasLowerCase("HeLLO")); console.log("HELLO: ", hasLowerCase("HELLO"));