isMixCase()

Determines if a string has both upper cased and lower cased characters.

This function is valid in v2.1.0 to v2.24.3. This function has been downloaded 62 times.

Parameters

{string} str
The value to be checked.
{boolean=} opt_allowNoCasing Optional, Default:false
If true, characters without casing found in str will be viewed as mixed cased characters.

Returns

{boolean}
true if str has mixed cased characters or if opt_allowNoCasing is true and str only has characters without casing. Otherwise false is returned.

Required Functions

This function directly requires the following functions which are included automatically:

  • isLowerCase()
    Determines if a string doesn't have upper cased characters.
  • isNoCase()
    Determines if a string only has characters without casing.
  • isUpperCase()
    Determines if a string doesn't have lower cased characters.

Requiring Functions

This function is directly required by the following functions:

  • isLowerCase()
    Determines if a string doesn't have upper cased characters.
  • isNoCase()
    Determines if a string only has characters without casing.
  • isUpperCase()
    Determines if a string doesn't have lower cased characters.