Course contentsShow
TypeScript
Lesson 985 of 1,79623. Type AssertionsPro lesson

Non-Null Assertions with !

The postfix `!` operator asserts a value is non-null/undefined, equivalent to `as NonNullable<typeof value>`.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.