Lesson 13 of 24 · +130 xp

Generic

Reusable types.

Explained simply

Your task

Write function first<T>(arr: T[]): T { return arr[0]; }

generic.ts
← Back