如何向 p5 数据 table 添加一行?

How to add a row to a p5 data table?

The made this question because the only related question I was able to find appears to be completely unhelpful

假设我有一个空的 p5 数据 table:

  data = new p5.Table();
  data.columns = ['x','y']

如何向此 table 添加数据?

can be found on the docs的方式如下:

let newRow = data .addRow();
newRow.setNum('x', 12);
newRow.setString('name', 'cool string');

我想知道是否有人知道将参数添加到 addRow 函数的直接方法?