We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 762f58b commit b5ab52aCopy full SHA for b5ab52a
src/io/p5.Table.js
@@ -500,7 +500,7 @@ class Table {
500
const ret = [];
501
if (typeof value === 'string') {
502
for (let i = 0; i < this.rows.length; i++) {
503
- ret.push(this.rows[i].obj[value]);
+ ret.push(this.rows[i].obj[this.columns.indexOf(value)]);
504
}
505
} else {
506
for (let j = 0; j < this.rows.length; j++) {
0 commit comments