JavaScript

Intl.Collator.prototype.resolvedOptions() メソッド


編集:2022.12.20 by T.A.

[Edge]。→

Intl.Collator のオプションの計算された設定値を新しいオブジェクトで返します。

Intl.Collator.resolvedOptions( )
Intl.Collator Intl.Collator オブジェクト。
戻り値

以下のようなプロパティを持つオブジェクト。値は、計算された結果の物が返される。

プロパティは、コンストラクターで指定されていない場合は省かれる場合もある。

locale
locales
caseFirst
caseFirstkf
collation
collationco
ignorePunctuation
ignorePunctuation
numeric
numerickn
sensitivity
sensitivity
usage
usage
解説
DA=new Intl.Collator('ja-JP-u-kf-upper', {ignorePunctuation:true});  //日本語、大文字が先、句読点無視。
D=DA.resolvedOptions();  //=[object]:[object Object]
	//locale=[string]:ja-u-kf-upper
	//usage=[string]:sort
	//sensitivity=[string]:variant
	//ignorePunctuation=[boolean]:true
	//collation=[string]:default
	//numeric=[boolean]:false
	//caseFirst=[string]:upper

new Intl.Collator()


テスト