Book Your Free Call
Tim Mouskhelichvili • July 4, 2022 • 2 minutes to read
When coding with TypeScript, developers sometimes need to convert a string to a number. Luckily, JavaScript provides many different ways to do it that you can also use in TypeScript. The easiest way to cast a string to a [...]
Tim Mouskhelichvili • July 2, 2022 • 3 minutes to read
TypeScript offers multiple types to compose existing types into new ones, such as the intersection type or the union type. The union type allows a developer to use more than one data type as a parameter or a variable [...]
Tim Mouskhelichvili • June 30, 2022 • 2 minutes to read
TypeScript provides developers with different ways to combine and compose existing types to create new ones. One such TypeScript feature is the intersection type. The intersection type allows a developer to combine multiple types into one. This article will [...]
Tim Mouskhelichvili • June 28, 2022 • 3 minutes to read
TypeScript is a superset of JavaScript, and just like its counterpart, it supports object-oriented principles such as class inheritance. When a class inherits another class, a developer may want to override a parent class method. Luckily, this is easy [...]
Tim Mouskhelichvili • June 27, 2022 • 2 minutes to read
In TypeScript, developers often need to combine or extend a type to create a new one. Luckily, this is simple to do and is very easy to accomplish. This article will explore different ways of extending a type or [...]
Tim Mouskhelichvili • June 8, 2022 • 3 minutes to read
The reduce function lets the developer iterate over an array and execute a reducer on each array element. This function returns a single result. Here is a simple example of the reduce function in TypeScript. const arr = [ [...]
Tim Mouskhelichvili • May 7, 2022 • 3 minutes to read
TypeScript adds optional type checking capabilities to JavaScript. Indeed, code written in TypeScript is checked for error before it is executed, saving development and debugging time. One of the potential errors that a developer might encounter is the TypeScript [...]
Tim Mouskhelichvili • May 6, 2022 • 2 minutes to read
In TypeScript, interfaces represent the shape of an object. They support many different features like optional parameters but unfortunately do not support setting up default values. However, you can still set up a TypeScript interface default value by using [...]
Tim Mouskhelichvili • May 4, 2022 • 2 minutes to read
In TypeScript, there could be many scenarios where a developer might want to pause or sleep a function's execution for a specific time. This function used to be hard to implement, but nowadays, promises make it very simple. To [...]
Tim Mouskhelichvili • April 7, 2022 • 7 minutes to read
Functions are part of the basic fundamental concepts of programming that every developer needs to understand. A function is a reusable piece of code that performs a specific task. Functions are the fundamental building blocks of any web application [...]