TypeScript concepts

TypeScript · Generics

TypeScript Generics puzzles

8 TypeScript puzzles on generics. Read the snippet, guess the output, then reveal the answer and why TypeScript behaves that way.