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 ... 2023.10.23 JavaScript/TypeScript
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... 2021.02.24 JavaScript/TypeScript
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... 2021.02.16 JavaScript/TypeScript
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 fo... 2020.10.21 JavaScript/TypeScript