Glossary Term
Intl.Collator.prototype.compare()
2 tags
1 category
The compare() method of Intl.Collator instances compares two strings according to the sort order of this collator object.
Return value: A number indicating how string1 and string2 compare to each other according to the sort order of this Intl.Collator object:
Return value: A negative value if string1 comes before string2; A positive value if string1 comes after string2; 0 if they are considered equal.
Parameters: string1, string2 The strings to compare against each other.
Syntax example: compare(string1, string2)
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
