diff --git a/src/io/p5.Table.js b/src/io/p5.Table.js index 93c4cf35b8..4e05615bee 100644 --- a/src/io/p5.Table.js +++ b/src/io/p5.Table.js @@ -74,7 +74,7 @@ p5.Table = class { * * */ - constructor(rows) { + constructor(rows = []) { this.columns = []; /** @@ -84,7 +84,7 @@ p5.Table = class { * @property rows * @name rows */ - this.rows = []; + this.rows = rows; } /**