Skip to content

Commit

Permalink
change the return steup into a valued one
Browse files Browse the repository at this point in the history
  • Loading branch information
Gkiokan committed May 7, 2022
1 parent a10346c commit b3ecb44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,12 @@ export default {
getTable(head=[], chars={}){
let defaultChars = {'mid': '', 'left-mid': '', 'mid-mid': '', 'right-mid': ''}

return new Table({
let table = new Table({
head,
chars: { ...defaultChars, ...chars },
})

return table
},

}

0 comments on commit b3ecb44

Please sign in to comment.