How to check variable is null or undefined?

To check for null or undefined in TypeScript, use a comparison to check if the value is equal or is not equal to null or undefined.

Check example below:

Related Answers