Skip to content
Medium
keyof & indexed access

Keyof picker

Implement a pick<T, K>() that only allows keys of T. Return an object containing just those keys, fully typed.

Solution

Loading...
Run your code to see output and diagnostics.

Built by Antigravity. The source code is available on GitHub.