Strictly check for null and undefined values in TypeScript
May 27, 2020 — In TypeScript, you assign types to variables and function parameters to catch type related errors early, even before you run the code. But TypeScript doesn’t warn you when you assign null
and undefined
to the variables of common types.