Skip to content

Commit 004949f

Browse files
authored
Merge pull request #7011 from asukaminato0721/The-constructor-of-p5.Table
fix The constructor of p5.Table
2 parents e6053b5 + 9c7f5cf commit 004949f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/io/p5.Table.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ p5.Table = class {
7474
* </code>
7575
* </div>
7676
*/
77-
constructor(rows) {
77+
constructor(rows = []) {
7878
this.columns = [];
7979

8080
/**
@@ -84,7 +84,7 @@ p5.Table = class {
8484
* @property rows
8585
* @name rows
8686
*/
87-
this.rows = [];
87+
this.rows = rows;
8888
}
8989

9090
/**

0 commit comments

Comments
 (0)