Skip to content

Commit

Permalink
feat: Table print should return the table instance (#286).
Browse files Browse the repository at this point in the history
  • Loading branch information
jheer committed Aug 12, 2022
1 parent 269aea5 commit e281455
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/table/table.js
Expand Up @@ -274,6 +274,7 @@ export default class Table extends Transformable {
* @param {PrintOptions|number} options The options for row object
* generation, determining which rows and columns are printed. If
* number-valued, specifies the row limit.
* @return {this} The table instance.
*/
print(options = {}) {
if (isNumber(options)) {
Expand All @@ -287,6 +288,7 @@ export default class Table extends Transformable {

console.log(msg); // eslint-disable-line no-console
console.table(obj); // eslint-disable-line no-console
return this;
}

/**
Expand Down

0 comments on commit e281455

Please sign in to comment.