The getCollations()
method of Intl.Locale
instances returns a list of one or more collation types for this locale.
Note: In some versions of some browsers, this method was implemented as an accessor property called collations
. However, because it returns a new array on each access, it is now implemented as a method to prevent the situation of locale.collations === locale.collations
returning false
. Check the browser compatibility table for details.