Easy
TypeScript Type Challenge Unshift Walkthrough
The goal of this challenge is to implement a generic Unshift type that works like the built in Array.prototype.unshift javascript method. It should take two arguments, the first an array and the...
read articleTypeScript Type Challenge Push Walkthrough
The goal of this challenge is to implement a generic Push type that works like the built in Array.prototype.push javascript method. It should take two arguments, the first an array and the second any....
read articleTypeScript Type Challenge Concat Walkthrough
The goal of this challenge is to implement a generic Concat type works like the built in Array.prototype.concat javascript method. It should take two array arguments and return a new type with...
read articleTypeScript Type Challenge Includes Walkthrough
The goal of the challenge is to implement a generic type Includes<T extends unknown[], U> that returns true if U is included in T. The challenge:...
read articleTypeScript Type Challenge Awaited Walkthrough
The goal of the challenge is to implement a generic type Awaited that returns the type of something wrapped in a Promise. The challenge:...
read articleTypeScript Type Challenge If Walkthrough
The goal of this challenge is to implement a generic If type which accepts condition C, a truthy return type T, and a falsy return type F. C is expected to be either true or false while T and F can be...
read articleTypeScript Type Challenge TupleToObject Walkthrough
The goal of the challenge is to implement a generic type called TupleToObject, that transforms the tuple type passed to it into a object type where key and value are both elements from the tuple. The...
read articleTypeScript Type Challenge Length of Tuple Walkthrough
The goal of the challenge is to implement a generic type called Length that takes an array and returns the length of that array. The challenge:...
read articleTypeScript Type Challenge First of Array Walkthrough
The goal of the challenge is to implement a generic type called First that takes an array and returns the type of the first element in the array. The challenge:...
read articleTypeScript Type Challenge Exclude Walkthrough
The goal of the challenge is to implement a generic type MyExclude that works the same way the built in Exclude type works, without using Exclude The challenge:...
read articleTypeScript Type Challenge Readonly Walkthrough
The goal of the challenge is to reimplement the built in Readonly generic type that exists in TypeScript, without using Readonly itself. The challenge:...
read articleTypeScript Type Challenge Pick Walkthrough
The goal of the challenge is to reimplement the built in Pick generic type that exists in TypeScript, without using Pick itself. The challenge:...
read article