String.prototype.toLowerCase()
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
toLowerCase()
メソッドは、呼び出す文字列の値を小文字に変換して返します。
試してみましょう
const sentence = "The quick brown fox jumps over the lazy dog.";
console.log(sentence.toLowerCase());
// Expected output: "the quick brown fox jumps over the lazy dog."
構文
js
toLowerCase()
返値
呼び出す文字列の値を小文字に変換した新しい文字列です。
解説
toLowerCase()
メソッドは、小文字に変換された文字列の値を返します。toLowerCase()
メソッドは、文字列 str
自身の値には影響を与えません。
例
toLowerCase()
メソッドの使用
js
console.log("ALPHABET".toLowerCase()); // 'alphabet'
仕様書
Specification |
---|
ECMAScript® 2025 Language Specification # sec-string.prototype.tolowercase |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
toLowerCase |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.