File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ const tableChars = {
30
30
31
31
const renderRow = ( row , columnWidths ) => {
32
32
let out = tableChars . left ;
33
- for ( var i = 0 ; i < row . length ; i ++ ) {
33
+ for ( let i = 0 ; i < row . length ; i ++ ) {
34
34
const cell = row [ i ] ;
35
35
const len = getStringWidth ( cell ) ;
36
36
const needed = ( columnWidths [ i ] - len ) / 2 ;
@@ -49,9 +49,9 @@ const table = (head, columns) => {
49
49
const columnWidths = head . map ( ( h ) => getStringWidth ( h ) ) ;
50
50
const longestColumn = columns . reduce ( ( n , a ) => Math . max ( n , a . length ) , 0 ) ;
51
51
52
- for ( var i = 0 ; i < head . length ; i ++ ) {
52
+ for ( let i = 0 ; i < head . length ; i ++ ) {
53
53
const column = columns [ i ] ;
54
- for ( var j = 0 ; j < longestColumn ; j ++ ) {
54
+ for ( let j = 0 ; j < longestColumn ; j ++ ) {
55
55
if ( rows [ j ] === undefined )
56
56
rows [ j ] = [ ] ;
57
57
const value = rows [ j ] [ i ] =
You can’t perform that action at this time.
0 commit comments