If you have ever climbed a mountain, then you can understand JavaScript’s map method, which is one of JavaScript’s higher-order functions. I will admit it: I have slipped into the terrible habit of strictly using for loops any time I need to iterate through an array.
Full article