Skip to content

Commit

Permalink
refactor(csv): prepare for noUncheckedIndexedAccess
Browse files Browse the repository at this point in the history
  • Loading branch information
syhol committed Jan 10, 2024
1 parent 7601263 commit 6429810
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 6429810

Please sign in to comment.