DEV Community

Discussion on: Typescript - Tips & Tricks - Non-null assertion operator

Collapse
 
puppo profile image
Luca Del Puppo

I agree with you. This post has the scope to explain the Non-null assertion operator.
In a real case, maybe you can't change the code behind because it's in an external dependence; in this case, I would prefer to use an Assert Function, but it is a topic of a future post.