Checks if the given string is exclusively of the specific case.
Note that some characters have no casing, such as punctuation (they have no difference between
upper and lower casings). By default, those letters always return true for this function,
regardless of which caseType is provided. To instead return false for any such characters,
pass in an options object and set rejectNoCaseCharacters to true.
Checks if the given string is exclusively of the specific case.
Note that some characters have no casing, such as punctuation (they have no difference between upper and lower casings). By default, those letters always return
true
for this function, regardless of whichcaseType
is provided. To instead returnfalse
for any such characters, pass in an options object and setrejectNoCaseCharacters
to true.