Array.max = function(array) {
return Math.max.apply(Math, array);
};
var heights = new Array();
$('.last-projects .row').each(function(index) {
var idx = $(this).prop('id');
$(this).find('.col').each(function(textIndex) {
heights.push($(this).height());
});
var height = Array.max(heights);
$("#" + idx + "").css({
"height" : "" + height + "px"
});
heights = [];
});