#typescript

First of Array

Implement a generic First<T> that takes an Array T and returns its first element's type

Tuple to Object

Given an array, transform it into an object type and the key/value must be in the provided array.

Mapped Types

A mapped type is a type that transforms one type into another type by iterating over its properties.