Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for String.prototype.toLocaleLowerCase().
Developer library 6
Firefox 55 release notes for developers
pt/Reference/Functions/Method_definitions#async_generator_methods) are now supported ([Firefox bug 1353693](https://bugzil.la/1353693)). - The String.prototype.toLocaleLowerCase() and String.prototype.toLocaleUpperCase() methods now support an optional `locale` parameter to specify a language tag for locale-specific case mappings ([Firefox bug 1318403](https://bugzil.la/1318403)). - The Intl.Collator object now suppo
String
transformed to `SS` by `toUpperCase()`, while the Turkish letter `ı` would be falsely reported as unequal to `I` by `toLowerCase()` unless specifically using [`toLocaleLowerCase("tr")`](/docs/Web/JavaScript/Reference/Global_Objects/String/toLocaleLowerCase). ```js const areEqualInUpperCase = (str1, str2) => str1.toUpperCase() === str2.toUpperCase(); const areEqualInLowerCase = (str1, str2) => str1.toLowerCase()
String.prototype.toLocaleUpperCase()
of the result string can differ from the input length. This also implies that the conversion is not stable, so for example the following can return `false`: `x.toLocaleLowerCase() === x.toLocaleUpperCase().toLocaleLowerCase()` ## Examples ### Using toLocaleUpperCase() ```js "alphabet".toLocaleUpperCase(); // 'ALPHABET' "Gesäß".toLocaleUpperCase(); // 'GESÄSS' "i\u0307".toLocaleUpperCase("lt-LT"); // 'I' const l
String.prototype.toLowerCase()
oLowerCase()` ```js console.log("ALPHABET".toLowerCase()); // 'alphabet' ``` ## Specifications ## Browser compatibility ## See also - String.prototype.toLocaleLowerCase() - String.prototype.toLocaleUpperCase() - String.prototype.toUpperCase()
String.prototype.toLocaleLowerCase()
The **`toLocaleLowerCase()`** method of String values returns this string converted to lower case, according to any locale-specific case mappings. JavaScript Demo: String.prototype.toLocaleLowerCase() ```js interactive-example const dotted = "İstanbul"; console.log(`EN-US: ${dotted.toLocaleLowerCase("en-US")}`); // Expected output: "EN-US: i̇stanbul" console.log(`TR: ${dotted.toLocaleLowerCase("tr")}`); // Expect
String.prototype.toUpperCase()
.toUpperCase.call(true); // prints out 'ABCDEF TRUE'. console.log(a, b); ``` ## Specifications ## Browser compatibility ## See also - String.prototype.toLocaleLowerCase() - String.prototype.toLocaleUpperCase() - String.prototype.toLowerCase()