How to find shortest div with JQuery

html, javascript, jquery, offsetheight

Solution

var shortest = [].reduce.call($(".features"), function(sml, cur) {
    return $(sml).height() < $(cur).height() ? sml : cur;
});

Problem

``` <div id="c1" class="features" style="height:100px;width:100px;"></div> <div id="c2" class="features" style="height:120px;width:100px;"></div> <div id="c3" class="features" style="height:90px;width:100px;"></div> <div...> ``` How do I use JQuery to find the shortest `div`? For example, the above would result in div id="c3" because its height is 90px.

Original source