Practice · 3 of 3
Pick & Omit
CHALLENGE
Difficulty: intermediate+25 XP
Implement the runtime twins of the utility types: pick(obj, keys) returns only the listed keys that exist, and omit(obj, keys) returns everything except them. Neither may mutate obj; both return fresh objects.
Press Submit to check your solution.
Back to lesson: Practice: Shapes & Inference — Practice