How to Check for Undefined in JavaScript

How to Check for Undefined in JavaScript

To compare values in JavaScript, the triple equal sign is the one you’re probably familiar with. The triple equals operator checks for strict equality between two values. Both the data type and value you’re comparing have to be precisely the same. The double equals tests for loose equality and preforms type coercion. This means we compare two values after converting them … Read more

Javascript Map Reduce: How to Use map() with reduce()

Javascript Map Reduce - How to Use map() with reduce()

JavaScript map(), reduce(), and filter() are pure functions that return a new array and does not modify the original array. These functions are array methods. Each one will iterate over the array and perform some kind of transformation or computation. The map() function will return a new array based on the result of the function. … Read more

Javascript Map forEach() Method with Example

Javascript Map forEach() Method with Example

The forEach() is an inbuilt JavaScript function that executes a provided function once per every key/value pair in the Map object, in insertion order. JavaScript Map forEach The JavaScript map forEach() method executes the specified function once for each key/value pair in the Map object. The forEach function executes the provided callback once for each … Read more

Javascript: Find Object in Array

Javascript - Find Object in Array

You often get in the scenarios where you have an array of objects, and you need to find some specific object inside this array based on some property of the object. Let’s see how to find an object in the array in JavaScript. Javascript: Find Object in Array To find Object in Array in JavaScript, … Read more

Javascript Array Sort: How to Sort Array in JavaScript

Javascript array sort method tutorial with example

Javascript array sort() is the inbuilt method that sorts all the items of the array in place and returns that array. The sort() method can also accept the parameter like function. So it will sort an array based on that function logic. The default sort order is built on converting the item into strings and … Read more

How To Setup TypeScript With Webpack 4

how to setup typescript with webpack 4

TypeScript is a language for application-scale JavaScript. TypeScript adds optional types, classes, and modules to JavaScript. TypeScript supports tools for large-scale JavaScript applications for any browser, for any host, on any OS. In addition, TypeScript compiles to readable, standards-based JavaScript. Setup TypeScript with Webpack 4 TypeScript is a typed superset of JavaScript that compiles to plain … Read more

How to Use TypeScript with Vue

How to use TypeScript with Vue js

Vue.js is already providing TypeScript support. The static type system can help prevent many potential runtime errors, especially as applications grow. For developing Vue applications with TypeScript, we strongly recommend using Visual Studio Code, which provides excellent out-of-the-box support for TypeScript. If you are new to Vue.js, then check out my Vue.js Tutorial. So, we will use … Read more

Beginner’s Guide to Setup TypeScript with Webpack

Beginner's Guide To Setup TypeScript With Webpack

TypeScript is a free and open-source programming language developed by Microsoft Team. It is a  superset of JavaScript and statically typed object-oriented programming language. It is a very modern static typing language used by Angular Framework. Today, we will learn how to configure typescript in our machine to use its features. If you go to its official … Read more