Javascript

Sort an Array of Strings Alphabetically in Javascript

Very common requirement developers encounter while working with javascript arrays is to sort an array of strings. This article demonstrates easy ways to sort array of strings alphabetically in ascending as well as descending order using various example illustrations. Table of Contents: Sort an array of strings using sort() method Sort an array of strings …

Sort an Array of Strings Alphabetically in Javascript Read More »

5 ways to Merge two Arrays and Remove Duplicates in Javascript

While working in javascript arrays, we often need to merge two arrays, and many times we also need to remove the duplicates from the final array. This article will see different ways to merge two arrays and remove duplicate items from the final array using different methods and various example illustrations. Table of Contents: Merge …

5 ways to Merge two Arrays and Remove Duplicates in Javascript Read More »

Scroll to Top