Pick<T, K> easy #union #built-in

by Anthony Fu @antfu

Take the Challenge

Implement the built-in `Pick` generic without using it. Constructs a type by picking the set of properties `T` from `K` For example ```ts interface Todo { title: string description: string completed: boolean } type TodoPreview = MyPick const todo: TodoPreview = { title: 'Clean room', completed: false, } ```
Back Share your Solutions Check out Solutions

Related Challenges

3・Omit<T, K>