How to check property null or undefined in TypeScript or Angular

How to check property null or undefined in TypeScript or Angular

In this article, we will see how to check for both null and undefined in Angular/Typescript, Whenever we are using any typescript class or interface we define some properties there and we often need to check whether that property is null or undefined to prevent some run time error.

Top 10 VS Code extensions

Top 10 VS Code extensions

Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux. It comes with built-in support for JavaScript, TypeScript and Node.js and has a rich ecosystem of extensions for other languages (such as C++, C#, Java, Python, PHP, Go) and runtimes (such as .NET and Unity).

How to get names and values of enum in typescript

How to get names and values of enum in typescript

In this article, we’ll see what is enum or enumeration and why it’s used and we’ll also see how to get names and values of enum in typescript. What are Enums? In typescript enum is available from typescript version 2.4. Enum or Enumeration allowed us to declare set of named constants. Enum is a collection … Read more How to get names and values of enum in typescript

How to convert string to number in javascript or typescript

How to convert string to number in javascript or typescript

We can convert string to an integer or number with few different ways. In this article, we’ll see all different ways to convert string to number in javascript or typescript or in angular.