Thisura Thenukathisurathenuka.hashnode.dev·Aug 21, 2023JavaScript's copyWithin is strange 😬I've been writing a comprehensive guide for JavaScript array methods while learning them myself. I tried out all possible variations of each method and the methods were doing what I expected them to do, except for one. I spent quite some time trying ...Discuss·44 readsdaily-nuggets
Thisura Thenukathisurathenuka.hashnode.dev·Aug 19, 2023Don't misuse JavaScript Array mapI've been using the JavaScript Array map() function whenever I needed to iterate an array and manipulate it. But today I learned that even though it gets the job done, it has some disadvantages. Usage map is a higher-order function in JavaScript sinc...Discuss·43 readsJavaScript