diff --git a/src/util.ts b/src/util.ts index 155e5ec..14de994 100644 --- a/src/util.ts +++ b/src/util.ts @@ -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);