MyExtract

Medium

Implement MyExtract — opposite of Exclude. Keeps only types from T that are in U.

Examples:

Input 1: type Result = MyExtract<"a" | "b" | "c", "a" | "d">
Output 1: "a"
Output
Run your code to see results.