Checks if a string is lower case.
Convert the given string to lower case, using String.toLowerCase()
and compare it to the original.
代码片段
const isLowerCase = str => str === str.toLowerCase();
使用样例
isLowerCase('abc'); // true
isLowerCase('a3@$'); // true
isLowerCase('Ab4'); // false