Skip to content

Commit 800464d

Browse files
authored
Update TypeScript.md typo
1 parent 31cedd7 commit 800464d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

TypeScript.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,7 @@ In the above example, the `address` property of `person` is optional. By using t
219219

220220
## Non-null Assertion Operator
221221

222-
TypeScript provides the non-null assertion operator (`!`) to tell the compiler that a value will not be null or undefined at runtime, even if the type declaration allows it. It asserts that the value is non-null and non-undefined
223-
224-
, allowing you to access properties or call methods without a compiler error.
222+
TypeScript provides the non-null assertion operator (`!`) to tell the compiler that a value will not be null or undefined at runtime, even if the type declaration allows it. It asserts that the value is non-null and non-undefined, allowing you to access properties or call methods without a compiler error.
225223

226224
```typescript
227225
const element = document.getElementById("myElement")!;

0 commit comments

Comments
 (0)