minor
This commit is contained in:
parent
ab20ddd9ab
commit
9f9809004d
1 changed files with 3 additions and 3 deletions
|
@ -538,10 +538,10 @@ Luckily, all modern browsers (IE10- requires the additional library [Intl.JS](ht
|
|||
|
||||
It provides a special method to compare strings in different languages, following their rules.
|
||||
|
||||
The call [str.localeCompare(str2)](mdn:js/String/localeCompare) returns an integer indicating whether `str` comes before, after or is equivalent to `str2` according to the language rules:
|
||||
The call [str.localeCompare(str2)](mdn:js/String/localeCompare) returns an integer indicating whether `str` is less, equal or greater than `str2` according to the language rules:
|
||||
|
||||
- Returns a negative number if `str` is less than `str2`, i.e. `str` occurs before `str2`.
|
||||
- Returns a positive number if `str` is greater than `str2`, i.e. `str` occurs after `str2`.
|
||||
- Returns a negative number if `str` is less than `str2`.
|
||||
- Returns a positive number if `str` is greater than `str2`.
|
||||
- Returns `0` if they are equivalent.
|
||||
|
||||
For instance:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue