Collator

@native @JSGlobal("Intl.Collator") @JSType
class Collator(locales: UndefOr[String | Array[String]], options: UndefOr[CollatorOptions]) extends Object

The Intl.Collator object is a constructor for collators, objects that enable language sensitive string comparison.

class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def compare(string1: String, string2: String): Double
def supportedLocalesOf(locales: String | Array[String], options: Any): Array[String]

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object