Skip to content

Commit

Permalink
fix: handle falsy values in csv export
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfede committed Jul 5, 2022
1 parent 60fae9b commit 1fedfaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ export function toCSV(data: any[], options: CSVOptions): string {
: value.toISOString()
);
} else {
l.push((value || '').toString());
l.push((typeof value !== 'undefined' ? value : '').toString());
}
}
out.push(l);
Expand Down

0 comments on commit 1fedfaa

Please sign in to comment.