GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

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.toLowerCase().

Developer library 6

Set

has(1); // true mySet1.has(3); // false, since 3 has not been added to the set mySet1.has(5); // true mySet1.has(Math.sqrt(25)); // true mySet1.has("Some Text".toLowerCase()); // true mySet1.has(o); // true mySet1.size; // 5 mySet1.delete(5); // removes 5 from the set mySet1.has(5); // false, 5 has been removed mySet1.size; // 4, since we just removed one value mySet1.add(5); // Set(5) { 1, 'some text', {...}, {.

String

) === str2.toUpperCase(); } ``` The choice of whether to transform by [`toUpperCase()`](/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase) or [`toLowerCase()`](/docs/Web/JavaScript/Reference/Global_Objects/String/toLowerCase) is mostly arbitrary, and neither one is fully robust when extending beyond the Latin alphabet. For example, the German lowercase letter `ß` and `ss` are both transformed to `SS`

String.prototype.replace()

returning. ```js function styleHyphenFormat(propertyName) { function upperToHyphenLower(match, offset, string) { return (offset > 0 ? "-" : "") + match.toLowerCase(); } return propertyName.replace(/[A-Z]/g, upperToHyphenLower); } ``` Given `styleHyphenFormat('borderTop')`, this returns `'border-top'`. Because we want to further transform the _result_ of the match before the final substitution is made, w

String.prototype.toLocaleUpperCase()

toLocaleUpperCase(locales); // 'I' ``` ## Specifications ## Browser compatibility ## See also - String.prototype.toLocaleLowerCase() - String.prototype.toLowerCase() - String.prototype.toUpperCase()

String.prototype.toLowerCase()

The **`toLowerCase()`** method of String values returns this string converted to lower case. shorter ```js interactive-example const sentence = "The quick brown fox jumps over the lazy dog."; console.log(sentence.toLowerCase()); // Expected output: "the quick brown fox jumps over the lazy dog." ``` ## Syntax ```js-nolint toLowerCase() ``` ### Parameters None. ### Return value A new string representing the ca

String.prototype.toLocaleLowerCase()

to any locale-specific case mappings. `toLocaleLowerCase()` does not affect the value of the string itself. In most cases, this will produce the same result as toLowerCase(), 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. ## Examples ### Using toLocaleLowerCase() ```js "ALPHABET".toLocaleLowerCase(); // 'alphabet' "\u

JSON results · Services directory