diff --git a/lib/index.js b/lib/index.js index c8d1790..cf4dbd1 100644 --- a/lib/index.js +++ b/lib/index.js @@ -86,7 +86,7 @@ Table.prototype.toString = function (){ var ret = '' , options = this.options , style = options.style - , head = options.head + , head = options.head || [] , chars = options.chars , truncater = options.truncate , colWidths = options.colWidths || new Array(this.head.length)