Javascript $.Map() & Math.Max.Appy() to find maximum height
<ul>
<li>following code is working code used to find maximum height</li>
<li><code>$.fn.</code> is used to add this method as jQuery Plugin.</li>
<li><code>$.Map()</code> return new array </li>
<li><p><code>Math.Max.Apply</code> return max number from array</p>

<pre><code>$.fn.tallest = function(outer, margins) {

    var fn = outer ? "height" : "outerHeight";

    return Math.max.apply(Math, $.map(this, function(el){return $(el)[fn](margins);}));

};

//var images=jquery(img 1.jpg, img 2.jpg, img 3.ipg, img 4.jpg);
var slidesHeight = images.tallest();
</code></pre></li>
<li><p>In this I have trouble understanding below line, but do understand
how .Map() works.<br>
<code>$.map(this, function(el) {return $(el)[fn](margins);})</code></p></li>
<li><p><code>$(el)[fn](margins)</code> //Especially how this line return height attribute of image.</p></li>
</ul>
