Function isCase

  • 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.

    Parameters

    Returns boolean