I had a little NodeJS script I wrote to do a quick task for myself and in this video I'll show you a comparison of different approaches to operating on an array, specifically the Array
reduce method vs chaining
map calls, and finally iterating over the array using a regular for loop. You'll learn why I recommend chaining most of the time.
Nice explanation 👌, what's the font u r using ?
could also have done map(trim)