JavaScript – find And findIndex

The Array.prototype.findIndex() and Array.prototype.find() methods are useful to search the provided array. The findIndex() method returns the index of the first element in the array that satisfies the provided testing […]

JavaScript – Optional chaining (?.)

Optional chaining allows you to safely access the nested object properties. In general, to access the nested object properties you must and should check the object and it exists otherwise you may get a type error. Using […]

JavaScript – Nullish coalescing operator (??)

The nullish coalescing operator (??) is a logical operator that returns its right-hand side operand when its left-hand side operand is null or undefined, and otherwise returns its left-hand side operand.


JavaScript – Logical assignment operators

Logical assignment operators are new compound assignment operators that combine the logical operations &&, ||, or ?? with assignment

Note that, unlike mathematical and bitwise […]

Javascript – replaceAll

String.prototype.replaceAll provides an easy way to replace all occurrences of a substring without creating a global RegExp.

I hope you like this Post, Please feel free to comment below, […]

Javascript – Promise.any

Promise.any is a promise combinator that resolves the resulting promise as soon as one of the input promises is fulfilled.

If all input promises are rejected, the resulting promise is rejected […]

Node.js 12: Private Class Fields

Javascript allows us to declare fields inside the class. We can access its own fields or properties by creating an instance of a class. Example:

As specified as of 2019, We can now declare […]

How to deploy angular universal to production

This post will cover the step needed to take the angular universal app to the production server. This post assumes that you have running angular universal application and which is generated by angular CLI. Now open your […]

How to Remove Duplicates from JavaScript Array

You can use the JavaScript built in object Set to keep unique values of any type. You can make use of Set to remove duplicate entries from a JavaScript array. Here is how the code looks


Async Await Error handling

In this post, I will show how to add error handling when using async/await. One of the goals of async/await is to make the asynchronous code appear more syntactically similar to synchronous code. This is also true for […] Protection Status