Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumTypeScripthand-rolled utility typesSingle-choice MCQ

A team writes their own `MyExclude` instead of using the built-in. What is `E`?

type MyExclude<T, U> = T extends U ? never : T; type E = MyExclude<"a" | "b" | "c", "a" | "c">;