String.prototype.toLowerCase()
and compare it to the original.const isLowerCase = str => str === str.toLowerCase();
isLowerCase('abc'); // true
isLowerCase('a3@$'); // true
isLowerCase('Ab4'); // false
Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️