TypeScript String localeCompare()
Syntax & Examples
Syntax of String.localeCompare()
There are 2 variations for the syntax of String.localeCompare() method. They are:
1.
localeCompare(that: string): number
This method determines whether two strings are equivalent in the current locale.
2.
localeCompare(that: string, locales?: string | string[], options?: CollatorOptions): number
This method