DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
TypeScript Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
TypeScript
What's the practical benefit of extracting repeated narrowing logic into a named type predicate function?
A
It makes the code run faster at runtime
B
It avoids duplicating the same inline check across multiple places, packaging the narrowing logic into a reusable, named function
C
It's required by TypeScript for all narrowing
D
It automatically fixes any bugs in the narrowing logic
Check Answer