[Home] >  Validator >  Check if a string contains lower case characters

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