Explore Library
FlashcardIntermediate

Narrowing the unknown Type

unknown must be narrowed with a type guard before you can use it.

Question

Why must you narrow 'unknown' before using it?

Click to reveal answer