GitHub 6248★

Check if a string contains lower case characters

JavaScript version

const containsLowerCase = (str) => str !== str.toUpperCase();

TypeScript version

const containsLowerCase = (str: string): boolean => str !== str.toUpperCase();

Examples

containsLowerCase('Hello World'); // true
containsLowerCase('HELLO WORLD'); // false
Follow me on and to get more useful contents.