Sponsored links
JavaScript/TypeScript

TypeScript Bracket notation causes index signature error

TypeScript shows an error when we access an object with brackets like obj to get the value. How can we safely resolve it...
JavaScript/TypeScript

8 ways to remove duplicates from Array in TypeScript

This page shows 8 ways to remove duplicates from an array. It also compares the performance to be useful to decide which one to use for your case. It also covers the case where the element is object.
JavaScript/TypeScript

How to generate Number Range Array in TypeScript

This post shows how to implement range function. It supports not only integer type but also floating type as well as ascending and descending order. Even if you need too big/small numbers, it can handle them by log notation.
JavaScript/TypeScript

String concat in JavaScript Performance Comparison

JavaScript offers several ways to concatenate strings. Let's learn how to concatenate strings and which one is the best ...
JavaScript/TypeScript

Making your code more abstract by Generics in Typescript

Our code gets more readable if we make it more abstract. We don't need to know how they work as long as it works. Many u...
JavaScript/TypeScript

Extends interface and type in typescript

We often need to build similar structures in different objects. Some functions require the same variables but want to ha...
JavaScript/TypeScript

Efficient Null Handling in Typescript

Null check in many places is tedious. This post shows you how to reduce such work in a nice way.
JavaScript/TypeScript

Typescript enum get value by key and key by value

Explains how to get value by key, get key by value, and use an enum as an object key. Some functions don't behave as expected when an enum has number values or mixed type data. All enum-related solutions are on this page.
JavaScript/TypeScript

TypeScript/JavaScript Spread operator (three dots)

The spread operator (three dots) is used to copy an array and expand an array to pass the values to another object or function parameters. It can also be used as rest parameters in a function to indicate that the function can take as many arguments as you want. The spread operator is handled as a shallow copy. Therefore you need to be careful if you use it for an object that has objects in the property list.
Tips

Activity review by Toggl Track

I started to use Toggl Track to record my daily activities. I want to know how long I spend on what. I record not all ac...
Sponsored links