Book Your Free Call
Tim Mouskhelichvili • March 21, 2022 • 3 minutes to read
TypeScript adds a few new data types that the developer can use. One of them is the Tuple type. A Tuple is a type of Array that knows how many elements it contains and at which position is which [...]
Tim Mouskhelichvili • March 19, 2022 • 3 minutes to read
In TypeScript, just like in most programming languages, the switch statement is part of the control flow statements that a developer can use. The switch statement executes different code blocks based on a specific condition. In this article, you [...]
Tim Mouskhelichvili • March 17, 2022 • 3 minutes to read
The keyof operator is one of the two type operators (the other one is the typeof operator) offered by TypeScript to facilitate type management. The keyof operator is used to extract keys from a specific type into a union [...]
Tim Mouskhelichvili • March 15, 2022 • 3 minutes to read
The Partial<Type> type is a built-in TypeScript utility type that takes a Type and creates a new type with all Type's properties set to optional. (I know it's a lot of types). It is often used, when you [...]
Tim Mouskhelichvili • March 11, 2022 • 4 minutes to read
The TypeScript Record<Keys, Type> utility type is used to construct a new type whose properties are Keys and values are Type. The Record type helps you create a new TypeScript type from a union type. In this article [...]
Tim Mouskhelichvili • March 9, 2022 • 2 minutes to read
TypeScript provides a lot of utility types that are going to help you do common type transformations. One of those types is the TypeScript Pick type. The Pick type is used when you want to construct a type by [...]
Tim Mouskhelichvili • March 7, 2022 • 5 minutes to read
In web development, you often need a data structure to hold a mapping of key/value pairs. This data structure has many names: a map, a dictionary, an associative array... Its functionality, however, always remains the same. The data structure [...]
Tim Mouskhelichvili • March 7, 2022 • 3 minutes to read
The for loop is one of the most common operations in programming. The for loop is used to execute a specific code block a specified number of times. Generally, one of the most common use-cases of this loop is [...]
Tim Mouskhelichvili • March 7, 2022 • 2 minutes to read
Summary TypeScript just like JavaScript has a special typeof operator. In TypeScript, the typeof operator is used to refer to the type of a variable in a type context. const v = 'This is a string'; const data: typeof [...]
Tim Mouskhelichvili • March 7, 2022 • 3 minutes to read
In JavaScript, there is a lot of different ways to capitalize the first letter of a string. You can capitalize the first letter with a combination of built-in javascript functions, with regex expressions and, even with CSS. Read this [...]