Skip to content

Commit 7d814f6

Browse files
minor fixes
1 parent 624fd8a commit 7d814f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[recent browser="new"]
55

6-
The optional chaining `?.` is an error-prone way to access nested object properties, even if an intermediate property doesn't exist.
6+
The optional chaining `?.` is an error-proof way to access nested object properties, even if an intermediate property doesn't exist.
77

88
## The problem
99

@@ -40,7 +40,7 @@ AND'ing the whole path to the property ensures that all components exist, but is
4040

4141
The optional chaining `?.` stops the evaluation and returns `undefined` if the part before `?.` is `undefined` or `null`.
4242

43-
Further in this article, for brewity, we'll be saying that something "exists" if it's not `null` and not `undefined`.
43+
Further in this article, for brevity, we'll be saying that something "exists" if it's not `null` and not `undefined`.
4444

4545

4646
Here's the safe way to access `user.address.street`:

0 commit comments

Comments
 (0)