diff --git a/lib/index.js b/lib/index.js index c8d1790..561985d 100644 --- a/lib/index.js +++ b/lib/index.js @@ -89,7 +89,7 @@ Table.prototype.toString = function (){ , head = options.head , chars = options.chars , truncater = options.truncate - , colWidths = options.colWidths || new Array(this.head.length) + , colWidths = options.colWidths || new Array(head.length) , totalWidth = 0; if (!head.length && !this.length) return '';