150
rated 0 times
[
153]
[
3]
/ answers: 1 / hits: 46456
/ 10 Years ago, tue, october 14, 2014, 12:00:00
My question is about the map
method of arrays in JavaScript.
You can pass it a function that takes a second argument, the index of the current element of the array being processed, but... to what purpose? What happens when you do it and what's the difference when you don't?
What would you use this feature for?
More From » methods