Posts
All the articles I've posted.
Implement Exclude
Implement the built-in Exclude<T, U>
MacOS Hotkeys
MacOS Hotkeys
Length of Tuple
Given a tuple, return the length of the tuple.
How to Render Markdown in React
How to Render Markdown in React
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.
How to use useReducer in React
How to use useReducer in React
Implement a Custom Utility Type: Readonly
Readonly is a utility type in TypeScript that allows you to create a new type by making all properties of an existing type readonly.
Implement a Custom Utility Type: Pick
Pick is a utility type in TypeScript that allows you to create a new type by picking a set of properties from an existing type.