src/jquery.timelineMe.js
function(items, propertyName) {
        if(!items) return false;

        var maxProperty;
        for(var i = 0; i < items.length; i++) {
            if(maxProperty == undefined)
                maxProperty = items[i][propertyName];
            else if(items[i][propertyName] > maxProperty)
                maxProperty = items[i][propertyName];
        }
        return maxProperty;
    }
function(items, propertyName) {
        if(!items) return false;

        var maxProperty;
        for(var i = 0; i < items.length; i++) {
            if(maxProperty == undefined)
                maxProperty = items[i][propertyName];
            else if(items[i][propertyName] > maxProperty)
                maxProperty = items[i][propertyName];
        }
        return maxProperty;
    }
function ( items , propertyName ) { if ( ! items ) return false ; var maxProperty ; for ( var i = 0 ; i < items . length ; i ++ ) { if ( maxProperty == undefined ) maxProperty = items [ i ] [ propertyName ] ; else if ( items [ i ] [ propertyName ] > maxProperty ) maxProperty = items [ i ] [ propertyName ] ; } return maxProperty ; }
Method returning max value of specific array's property
Method returning max value of specific array s property