Sort array on multiple fields using JavaScript

Sorting, filtering, and searching are very common scenarios during development. In this article, I show you how to sort array on multiple fields using JavaScript.  Suppose you have an array of objects that contains several columns/fields. Now you have to sort the array on multiple fields like on Title and Date. The date would beSorting, filtering, and searching are very common scenarios during development. In this article, I show you how to sort array on multiple fields using JavaScript.  Suppose you have an array of objects that contains several columns/fields. Now you have to sort the array on multiple fields like on Title and Date. The date would be […]

Read More…

Map function in JavaScript

In this tutorial, we learn how to use the map function in JavaScript to manipulate arrays. The map function is one of the most commonly used functions to manipulate array elements. The map() method iterates an array and modifies the array elements using the callback method and returns the new array. Learn How to useIn this tutorial, we learn how to use the map function in JavaScript to manipulate arrays. The map function is one of the most commonly used functions to manipulate array elements. The map() method iterates an array and modifies the array elements using the callback method and returns the new array. Learn How to use […]

Read More…

Check if value exists in array JavaScript ES6

While writing code it is often seen that when we have to find out whether a value array may exist or not. In Javascript, there are several ways to check whether a particular value exists in the array. In this tutorial, I show you all the possible ways to check if a value exists inWhile writing code it is often seen that when we have to find out whether a value array may exist or not. In Javascript, there are several ways to check whether a particular value exists in the array. In this tutorial, I show you all the possible ways to check if a value exists in […]

Read More…

JavaScript Array Filter

In this tutorial, we learn how to use the JavaScript array filter method to filter an array in JavaScript based on some conditions. Introduction to JavaScript Array filter This is a very common situation as a developer you have come across to manipulate array items.  Based on the condition you have to fetch and createIn this tutorial, we learn how to use the JavaScript array filter method to filter an array in JavaScript based on some conditions. Introduction to JavaScript Array filter This is a very common situation as a developer you have come across to manipulate array items.  Based on the condition you have to fetch and create […]

Read More…

Compare location.href vs location.replace vs location.assign and window.open

During client-side development, you come across the situation where you have to redirect from one webpage to another webpage. Javascript provides several ways to redirect to a page and below properties/method are used to redirectDuring client-side development, you come across the situation where you have to redirect from one webpage to another webpage. Javascript provides several ways to redirect to a page and below properties/method are used to redirect […]

Read More…

How to add !important to CSS property using jQuery

In this tutorial, I show you how to add !important to CSS property using jQuery. When you have to increase the priority of any style property in CSS important keyword is used.

The important property overrides the existing style on the element and force to apply the important style. To mark any style as important the “!important” keyword is used immediately before the semicolon like below.In this tutorial, I show you how to add !important to CSS property using jQuery. When you have to increase the priority of any style property in CSS important keyword is used.

The important property overrides the existing style on the element and force to apply the important style. To mark any style as important the “!important” keyword is used immediately before the semicolon like below. […]

Read More…