function rowHeights(rows) {
return rows.map(function(row) {
return row.reduce(function(map,cell) {
return Math.max(max, cell.minHeight());
}, 0);
});
}
function colWidths(rows) {
return rows[0].map(function(_, i) {
return rows.reduce(function(max, row) {
return Math.max(max, row[i].minWidth());
}, 0);
});
}
:cookie: 173 | @piteto |http://www.freecodecamp.com/piteto
:cookie: 577 | @adelmahjoub |http://www.freecodecamp.com/adelmahjoub
:cookie: 563 | @korzo |http://www.freecodecamp.com/korzo