Skip to content

exception when headers passed to the csvWriter is empty array #49

@osadan

Description

@osadan

if an empty array is added as headers

csvWriter({ headers: []})

I receive the following error
""return result + "\n"
Unexpected token 'return'
at csv-write-stream/index.js
(the compile function)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions