This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
If a function should return the same type it receives, you need generics not unions.
You've completed the free preview. Subscribe to unlock every lesson in every course.