Blog
Mert Özen's blog posts on software development, backend, frontend, and DevOps.
Series
2 posts found
#narrowing
Frontend
PART 09
TypeScript Type Guards: Type Predicates and Assertion Functions
We write type predicates with x is T and assertion functions with asserts, and look at TypeScript 5.5's inferred type predicates and narrowing arrays with filter, pitfalls included.
3 Nov 2026
8 min
1
Frontend
PART 09
Narrowing in TypeScript: Shrinking Unions with Control Flow Analysis
We see how TypeScript narrows unions through control flow analysis: typeof, truthiness, equality, in and instanceof checks, discriminated unions and exhaustive checks with never.
3 Nov 2026
8 min
1