concept

Sponsored links
JavaScript/TypeScript

How to write clean if-else statements

if-else statements can easily be nested and make the code unreadable if we don't consider anything to write it. if-else ...
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 is...
JavaScript/TypeScript

How to check if an object implements an interface in Typescript

When using Typescript the compiler detects the type error. It supports any data type but it is not recommended to use be...
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 in f...
Sponsored links