Explore Library
FlashcardIntermediate

Narrowing Out null and undefined

Guards and operators remove null and undefined from union types.

Question

How do you narrow null and undefined out of a union?

Click to reveal answer