dist/underscore-contrib.js
function(array, fun) {
      return _.reduce(array, function(x, y) {
        return fun(x, y) ? x : y;
      });
    }
function(array, fun) {
      return _.reduce(array, function(x, y) {
        return fun(x, y) ? x : y;
      });
    }
function ( array , fun ) { return _ . reduce ( array , function ( x , y ) { return fun ( x , y ) ? x : y ; } ) ; }
Returns the 'best' value in an array based on the result of a given function.
Returns the best value in an array based on the result of a given function .