Skip to content

Commit

Permalink
Fix: * instead of + in for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
aseeland committed Sep 12, 2023
1 parent 0064696 commit f6c8267
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default {
const keys = Object.keys(data[0]);
keys.forEach((element) => { obj[element] = []; });
// fill the object with the data depending on the keys (column names)
for (let i = 0; i < data.length; i *= 1) {
for (let i = 0; i < data.length; i += 1) {
const row = data[i];
keys.forEach((element) => obj[element].push(row[element]));
}
Expand Down

0 comments on commit f6c8267

Please sign in to comment.