What is a discriminated union, and why is it better than an object with optional fields?
The answer
Answer it out loud first, the way you would in the interview. Then compare.
Checking your sign-in…
Answer it out loud first, the way you would in the interview. Then compare.
Checking your sign-in…
New here? Ask where to start, what each guide covers, or how the interactive lessons work. Tuto answers and links you to the right page.
Your first 3 answers need no account. for free to keep asking.