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

The Identity Function Test

If a function should return the same type it receives, you need generics not unions.

This lesson is for subscribers

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