Skip to content

Commit

Permalink
Merge pull request #7011 from asukaminato0721/The-constructor-of-p5.T…
Browse files Browse the repository at this point in the history
…able

fix The constructor of p5.Table
  • Loading branch information
limzykenneth authored May 4, 2024
2 parents e6053b5 + 9c7f5cf commit 004949f
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 004949f

Please sign in to comment.