Update String#toLocale{Lower,Upper}Case methods (#32961)

This commit is contained in:
falsandtru
2019-08-19 09:10:12 -07:00
committed by Ryan Cavanaugh
parent 634beb5332
commit 5ae286329f
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -466,13 +466,13 @@ interface String {
toLowerCase(): string;
/** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
toLocaleLowerCase(): string;
toLocaleLowerCase(locales?: string | string[]): string;
/** Converts all the alphabetic characters in a string to uppercase. */
toUpperCase(): string;
/** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
toLocaleUpperCase(): string;
toLocaleUpperCase(locales?: string | string[]): string;
/** Removes the leading and trailing white space and line terminator characters from a string. */
trim(): string;
@@ -36,9 +36,9 @@ genericFunction(genericObject, ({greeting}) => {
var s = greeting.toLocaleLowerCase(); // Greeting should be of type string
>s : string
>greeting.toLocaleLowerCase() : string
>greeting.toLocaleLowerCase : () => string
>greeting.toLocaleLowerCase : (locales?: string | string[]) => string
>greeting : string
>toLocaleLowerCase : () => string
>toLocaleLowerCase : (locales?: string | string[]) => string
});
@@ -106,7 +106,7 @@ if (typeof prop1 === "string" && prop1.toLocaleLowerCase()) { }
>prop1 : string | number
>"string" : "string"
>prop1.toLocaleLowerCase() : string
>prop1.toLocaleLowerCase : () => string
>prop1.toLocaleLowerCase : (locales?: string | string[]) => string
>prop1 : string
>toLocaleLowerCase : () => string
>toLocaleLowerCase : (locales?: string | string[]) => string