Skip to content

Commit

Permalink
refactor(csv): prepare for noUncheckedIndexedAccess (#4157)
Browse files Browse the repository at this point in the history
  • Loading branch information
syhol authored Jan 10, 2024
1 parent d1e8ee8 commit aec0327
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions csv/_io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ export function convertRowToObject(
);
}
const out: Record<string, unknown> = {};
for (let i = 0; i < row.length; i++) {
out[headers[i]] = row[i];
for (const [index, header] of headers.entries()) {
out[header] = row[index];
}
return out;
}
Expand Down

0 comments on commit aec0327

Please sign in to comment.