{

Welcome to my blog !


Learn Typescript compiler option| tsconfig.json file Options

April 21, 2022 ·  7 min read

typescript configuration file Every typescript project has a tsconfig.json file in the application root directory. tsconfig is abbreviated as typescript configuration file. This file contains all the configuration parameters required for the typescript compiler. Angular 2+ is based on the typescript and every Angular project contains this file in the project root directory. Browsers will not understand the typescript file, so there is a process called compile/transpile used to compile typescript code to javascript code....

Learn Typescript Bitwise and Assignment Operators with examples

April 21, 2022 ·  3 min read

Typescript operators: Learn bitwise, assignment, and comma operators with examples. Typescript Bitwise operators Bitwise operators are used to evaluating bit-based operations. Sometimes, it is required to evaluate bits of integer values, We have to use bitwise operators. There are several operators like in many programming languages. It works with 32 bits of an integer. These operators work on binary operands. Syntax: Operand1 Operator Operand2 Operand1 and Operand2 are javascript expressions....

How to Sort Object Array by property or key in Typescript?

April 21, 2022 ·  3 min read

In This tutorial, You will learn how to sort object arrays with keys or properties in typescript. The object holds the key and value of a real entity. Object Array is a list of objects. There are multiple ways we can sort object arrays using Sort Comparator. Array object soring with comparison logic Let’s declare an array of objects where each object holds id and name properties Following is an example of Sorting an array of objects in ascending order with the id property...

How to run typescript files from the command line.

April 21, 2022 ·  3 min read

Learn how to run typescript code from the command line Typescript is a superset of Javascript that includes features like type safety and static checking. Browsers understand javascript files, So typescript code must compile and convert to javascript to run in a browser. To compile typescript requires a typescript compiler in our machine. The following steps are required to run it typescript. Typescript code -> compile to javascript -> Run javascript There are multiple ways we can do this....

How to map array to another array in typescript example

April 21, 2022 ·  3 min read

It is a short tutorial on the below examples in typescript and javascript How to map an array of strings into another array string How to populate an array of objects from another array of objects. Sometimes, We have an original array returned from API, We want to display the only part of an array This example works in Typescript and javascript. How to map an array of strings into an array This is easy and simple to populate an array from another array....

Subscribe
You'll get a notification every time a post gets published here.