From 9c7f5cf47f952de707e6efbd4a3b3ae4b732e781 Mon Sep 17 00:00:00 2001 From: Asuka Minato Date: Sun, 5 May 2024 03:26:43 +0900 Subject: [PATCH] fix The constructor of p5.Table https://github.com/processing/p5.js/issues/7002 --- src/io/p5.Table.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } /**