DEV Community

Discussion on: What is wrong with optional chaining and how to fix it

Collapse
 
mrdrummer profile image
MrDrummer • Edited

There is always ?? which will only check for null or undefined and not other falsy values - it's under "Nullish Coalescing":
devblogs.microsoft.com/typescript/...