Es6-string-tolocalelowercase

提供:Dev Guides
2020年6月23日 (火) 08:04時点におけるMaintenance script (トーク | 投稿記録)による版 (Imported from text file)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先:案内検索

ES6-toLocaleLowerCase()

このメソッドは、現在のロケールを尊重しながら、文字列内の文字を小文字に変換するために使用されます。 ほとんどの言語では、toLowerCaseと同じ出力を返します。

構文

string.toLocaleLowerCase( )

戻り値

現在のロケールで小文字の文字列を返します。

var str = "Apples are round, and Apples are Juicy.";
console.log(str.toLocaleLowerCase( ));

出力

apples are round, and apples are juicy.