Code QuizAdvanced

Extract vs Exclude

Understand when to reach for Extract instead of Exclude to keep shared members.

Codetypescript
type A = "a" | "b" | "c";
type B = "b" | "c" | "d";

// Want the members common to both: "b" | "c"
type Common = Exclude<A, B>;

What is the bug in this code?