Skip to content

Commit

Permalink
オプショナルチェーンの説明修正
Browse files Browse the repository at this point in the history
オブジェクトのプロパティが存在しない場合でも  →  オブジェクトの参照が`null`や`undefined`の場合でも
  • Loading branch information
TamagawaJousui authored Jun 9, 2024
1 parent eb84c4e commit 78bad6f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sidebar_label: オプショナルチェーン

# オプショナルチェーン (optional chaining)

JavaScriptのオプショナルチェーン`?.`は、オブジェクトのプロパティが存在しない場合でも、エラーを起こさずにプロパティを参照できる安全な方法です。
JavaScriptのオプショナルチェーン`?.`は、オブジェクトの参照が`null``undefined`の場合でも、エラーを起こさずにプロパティを参照できる安全な方法です。

## プロパティ参照がエラーになる問題

Expand Down

0 comments on commit 78bad6f

Please sign in to comment.