QuizIntermediate
Generics with Union Type Arguments
Understand what happens when a union type is passed as a generic argument.
For function wrap<T>(x: T): T[], what does TypeScript infer for wrap<string | number>("a")?
Understand what happens when a union type is passed as a generic argument.
For function wrap<T>(x: T): T[], what does TypeScript infer for wrap<string | number>("a")?