comparison

JavaScript/TypeScript

8 ways to remove duplicates from Array in TypeScript

How can we code when we want to get unique values from an array? Which one is the fastest? I will show the performance ...
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

Is Map object faster than if-else and switch?

Map object in javascript or typescript can be used as a key-value object like a tuple. It's almost the same as Dictiona...
JavaScript/TypeScript

Best way to implement utility function Top-level vs Static vs Namespace

There are several ways to offer utility function which is used by variety classes. Have you ever considered which way i...
JavaScript/TypeScript

Difference between for, while, forEach, for-in and for-of

A lot of languages support several ways for loop logic. Typescript supports following ways for example. whileforfor ...
Copied title and URL