jQuery.map - Practical uses for the function?
<p>I am trying to get a better understanding of the <a href="http://docs.jquery.com/Utilities/jQuery.map">jQuery.map</a> function.</p>

<p>So in general terms .map takes a array and "maps" it to another array of items.</p>

<p>easy example:</p>

<pre><code>$.map([0,1,2], function(n){
    return n+4;
});
</code></pre>

<p>results in [4,5,6]</p>

<p>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?</p>
