Skip to main content

Check if a string is lower case

JavaScript version

const isLowerCase = (str) => str === str.toLowerCase();

TypeScript version

const isLowerCase = (str: string): boolean => str === str.toLowerCase();

Comments