TypeScript · Generics · Fresh / Intern · Concept
What problem do generics solve?
Short Interview Answer
Parametrize types for reusable, type-safe APIs without losing specificity.
Detailed Explanation
identity<T>(x: T): T preserves input type vs any. Constraints limit T.