Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 340 Bytes

check-if-a-string-is-lower-case.mdx

File metadata and controls

18 lines (14 loc) · 340 Bytes
category created title updated
Validator
2020-04-19
Check if a string is lower case
2021-10-13

JavaScript version

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

TypeScript version

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