101
rated 0 times
[
108]
[
7]
/ answers: 1 / hits: 38471
/ 15 Years ago, thu, april 2, 2009, 12:00:00
I am trying to get a better understanding of the jQuery.map function.
So in general terms .map takes a array and maps it to another array of items.
easy example:
$.map([0,1,2], function(n){
return n+4;
});
results in [4,5,6]
I think I understand what it does. I want to under why would someone need it. What is the practical use of this function? How are you using this in your code?
More From » jquery