Skip to content

Commit

Permalink
fix The constructor of p5.Table
Browse files Browse the repository at this point in the history
  • Loading branch information
asukaminato0721 authored May 4, 2024
1 parent e6053b5 commit 9c7f5cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/io/p5.Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ p5.Table = class {
* </code>
* </div>
*/
constructor(rows) {
constructor(rows = []) {
this.columns = [];

/**
Expand All @@ -84,7 +84,7 @@ p5.Table = class {
* @property rows
* @name rows
*/
this.rows = [];
this.rows = rows;
}

/**
Expand Down

0 comments on commit 9c7f5cf

Please sign in to comment.