TypeScriptSyntax
Non-null Assertion
Code example
el!.focus();Tells the compiler a value isn't null or undefined.
In TypeScript, non-null assertion: tells the compiler a value isn't null or undefined — el!.focus();
el!.focus();el!.focus();Tells the compiler a value isn't null or undefined.
Use el!.focus();.
Use this pattern: el!.focus();
Yes. Use Copy code and adapt the example to your program.
No. The language syntax is the same across operating systems.