JavaScript

Intl.Locale.prototype.caseFirst プロパティ


編集:2023.01.10 by T.A.

[Edge]。→

Intl.Locale の比較規則で大文字小文字のどちらが先かを示す文字列を返します。

構文
Intl.Locale.caseFirst
Intl.Locale Intl.Locale

文字列。→Intl.Collator():caseFirst

DA=new Intl.Locale('ja-JP');  //日本語の日本国。
D=DA.caseFirst;  //=[undefined]:undefined
DA=new Intl.Locale('ja-JP-u-kf-false');  //日本語で日本国、大文字小文字の優先。
D=DA.caseFirst;  //=[string]:false
DA=new Intl.Locale('ja-JP', {caseFirst:'false'});  //日本語で日本国、大文字小文字の優先。
D=DA.caseFirst;  //=[string]:false
DA=new Intl.Locale('ja-JP', {caseFirst:false});  //日本語で日本国、大文字小文字の優先。
D=DA.caseFirst;  //=[string]:false

Intl.Locale()


テスト