Put in order · JavaScript and React course · Module 12: React and TypeScript

Generic Constraint Syntax

Arrange the syntax of a generic constraint in TypeScript:

Items to put in order

  • <T extends
  • function sort
  • (items: T[]): T[]
  • { sortOrder: number }>

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