Question · JavaScript and TypeScript course · Module 6: TypeScript Basics

The Pick Type

What does the Pick<T, K> type do in TypeScript?

Answer options

  • Creates a new type selecting only the properties listed in K
  • Randomly selects properties from T
  • Filters an array of objects of type T
  • Copies object T to a new variable

You can check the correct answer by solving this task in the CodeWorlds game.