MyPick

Medium

Implement MyPick — a type equivalent to Pick.

Examples:

Input 1: type Example = MyPick<Obj, "key1" | "key2">
Output 1: { key1: string; key2: string }
Output
Run your code to see results.