filmov
tv
Typescript tutorial IndexOf utility type

Показать описание
In this TypeScript tutorial, we'll implement a utility type called IndexOf. This allows us to find the index of an item in an array.
Let's see how we can build it.
The IndexOf type takes two type parameters
Let's see how we can build it.
The IndexOf type takes two type parameters