Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Last field is set as undefined if it is empty #31

Open
JordyMoos opened this issue Jan 31, 2014 · 0 comments
Open

Last field is set as undefined if it is empty #31

JordyMoos opened this issue Jan 31, 2014 · 0 comments

Comments

@JordyMoos
Copy link

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 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant