prettytable.js
function (table) {
        var finalLine = '+';
        for (var i = 0; i < table.maxWidth.length; i++) {
            finalLine += Array(table.maxWidth[i] + 3).join('-') + '+';
        }
        return finalLine;
    }
function (table) {
        var finalLine = '+';
        for (var i = 0; i < table.maxWidth.length; i++) {
            finalLine += Array(table.maxWidth[i] + 3).join('-') + '+';
        }
        return finalLine;
    }
function ( table ) { var finalLine = '+' ; for ( var i = 0 ; i < table . maxWidth . length ; i ++ ) { finalLine += Array ( table . maxWidth [ i ] + 3 ) . join ( '-' ) + '+' ; } return finalLine ; }
Draw a line based on the max width of each column and return
Draw a line based on the max width of each column and return