16 lines
314 B
Markdown
16 lines
314 B
Markdown
### isLowerCase
|
|
|
|
Checks if a string is lower case.
|
|
|
|
Convert the given string to lower case, using `String.toLowerCase()` and compare it to the original.
|
|
|
|
``` js
|
|
const isLowerCase = str => str === str.toLowerCase();
|
|
```
|
|
|
|
```js
|
|
isLowerCase('abc'); //true
|
|
isLowerCase('a3@$'); //false
|
|
isLowerCase('Ab4'); //false
|
|
```
|