QuizIntermediate
Type Parameter Inference from Arguments
See how TypeScript infers generic type arguments from the values you pass.
Given function first<T>(items: T[]): T, what type does TypeScript infer for the call first([1, 2, 3])?
See how TypeScript infers generic type arguments from the values you pass.
Given function first<T>(items: T[]): T, what type does TypeScript infer for the call first([1, 2, 3])?