isLowerCase
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
### isLowerCase
|
### isLowerCase
|
||||||
|
|
||||||
Checks if the provided argument contains anything else than the lowerCase alphabets. If the second argument is provided to be true than numbers and other symbols are considered lowercase too.
|
Checks if the provided argument contains anything else than the lowercase alphabets. If the second argument is provided to be true than numbers and other symbols are considered lowercase too.
|
||||||
|
|
||||||
``` js
|
``` js
|
||||||
const isLowerCase = (val,symbol = false) => {
|
const isLowerCase = (val,symbol = false) => {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
### isUpperCase
|
### isUpperCase
|
||||||
|
|
||||||
Checks if the provided argument contains anything else than the upperCase alphabets. If the second argument is provided to be true than numbers and other symbols are considered uppercase too.
|
Checks if the provided argument contains anything else than the uppercase alphabets. If the second argument is provided to be true than numbers and other symbols are considered uppercase too.
|
||||||
``` js
|
``` js
|
||||||
const isUpperCase = (val,symbol = false) => {
|
const isUpperCase = (val,symbol = false) => {
|
||||||
if (symbol) return val === val.toUpperCase()
|
if (symbol) return val === val.toUpperCase()
|
||||||
|
|||||||
Reference in New Issue
Block a user