This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
Functions can return different types based on logic, represented as a union return type.
You've completed the free preview. Subscribe to unlock every lesson in every course.