How to remove duplicates in an array.In today's posts, I will show you two methods on how to remove duplicates from an array. In our first example, we will remove duplicates from our array using a Set. The Set object lets you store unique values of any type, whether primitive values or ...Aug 23, 2022·3 min read
Will a const declaration protect your data from mutation?Will a const declaration protect your data from mutation? Well...not really! Let's say I have an array with the following elements 7,2,5 and I have a function named "mutate" const numbers = [7,2,5,] function mutate (){ numbers.sort() console.l...Jul 26, 2022·1 min read