The toLocaleUpperCase()
method returns the calling string value converted to upper case, according to any locale-specific case mappings.
str.toLocaleUpperCase()
The toLocaleUpperCase()
method returns the value of the string converted to upper case according to any locale-specific case mappings. toLocaleUpperCase()
does not affect the value of the string itself. In most cases, this will produce the same result as toUpperCase(), but for some locales, such as Turkish, whose case mappings do not follow the default case mappings in Unicode, there may be a different result.
toLocaleUpperCase()
console.log('alphabet'.toLocaleUpperCase()); // 'ALPHABET'
Created by Mozilla Contributors and licensed under CC-BY-SA 2.5