![]()
Returns the comparator for a locale. If a locale is not explicitly specified,
a comparator for the user's locale will be returned. Note that if the browser
does not support locale-sensitive string comparisons, the comparator returned
will be a simple codepoint comparator.
Arguments:
Returns: function(string, string): number
The locale-specific comparator.
|
code » | ||
Returns true if a locale-sensitive comparator is available for a locale. If
a locale is not explicitly specified, the user's locale is used instead.
Arguments:
Returns: boolean
Whether there is a locale-sensitive comparator available
for the locale.
|
code » |