Concept Flow - Equality narrowing
Start with variable of union type
Check equality with specific value
Yes / No
Narrow type
Use narrowed type
Equality narrowing checks if a variable equals a specific value, then narrows its type to that value inside the true branch.