FlashcardIntermediate
in Operator Narrowing
The in operator narrows unions by checking for a property's presence.
Question
How does the 'in' operator narrow a union type?
Click to reveal answer
The in operator narrows unions by checking for a property's presence.
How does the 'in' operator narrow a union type?