Course contentsShow
TypeScript
Lesson 1667 of 1,79638. Common Patterns and AntipatternsPro lesson

The Array.map Example

Array.map needs generics because the output type depends on the callback's return type, not a fixed union.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.