QuizIntermediate
Equality Narrowing
See how comparing two variables can narrow both of their types.
With `x: string | number` and `y: string | boolean`, inside `if (x === y) { ... }`, what type do both `x` and `y` narrow to?
See how comparing two variables can narrow both of their types.
With `x: string | number` and `y: string | boolean`, inside `if (x === y) { ... }`, what type do both `x` and `y` narrow to?