Last field is set as undefined if it is empty
Opened this issue · 0 comments
JordyMoos commented
If the last field in the csv is empty then it will be set as undefined instead of the expected ''
Example file:
id,name,specials
1,John Doe,
2,Jane Doe,Javascript
3,Jake Doe,
Expected output:
{ id: '1', name: 'John Doe', specials: '' }
{ id: '2', name: 'Jane Doe', specials: 'Javascript' }
{ id: '3', name: 'Jake Doe', specials: '' }
Received output:
{ id: '1', name: 'John Doe', specials: '' }
{ id: '2', name: 'Jane Doe', specials: 'Javascript' }
{ id: '3', name: 'Jake Doe', specials: undefined }