Can someone please explain .map() in laymans terms?
<p><strong>UPDATE 1:</strong></p>

<p>Here is more of the script:</p>

<pre><code>$(".favorites").sortable(
    {update:function() {

    var that = this;

    var urls = ""; 
    var texts = "";

    $.map($(".favorites a"), function(elt) { 
        urls += "url=" + elt.href + "&amp;";
        texts += "text=" + $(elt).html() + "&amp;"; 
    }); 

    $.ajax({
        url: 'favorites.asmx/save',
        type: 'POST',
        data: { strItems:$(that).sortable("serialize",{key:'item'}), strURLs:urls.substr(0,urls.length - 1), strTexts:texts.substr(0,texts.length - 1) },
        error: function(xhr, status, error) {
                    console.log(xhr.responseText); 
        },
        success: function() {
            console.log("Values sent:- strURLs: " + urls.substr(0,urls.length - 1));
        }
    });
</code></pre>

<p><strong>ORIGINAL QUESTION:</strong></p>

<p>I have the following script which works, but I don't understand it:</p>

<pre><code>$.map($(".favorites a"), function(elt) { 
    urls += "url=" + elt.href + "&amp;";
    texts += "text=" + $(elt).html() + "&amp;"; 
}); 
</code></pre>

<p>I understand the basic examples in this link: <a href="http://api.jquery.com/jQuery.map/" rel="nofollow">http://api.jquery.com/jQuery.map/</a>, but I don't understand the script I have posted above.</p>
