Stdle #176 · narrowing · 2026-11-29
What does this TypeScript snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
type T = { a: number; b?: number }const o: T = { a: 1, b: 0 }console.log("b" in o)Narrowing
Stdle #176 · narrowing · 2026-11-29
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
type T = { a: number; b?: number }const o: T = { a: 1, b: 0 }console.log("b" in o)