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, 20221 min read21
