Skip to content

When provided Headers in Unparse if the data is empty the resulting string should just be a header #932

Open
@hikarunoryoma

Description

@hikarunoryoma

I would expect that when unparse runs and headers are provided as part of the UnparseConfig options that the returned string will just have a single row of headers instead of empty string.

Example:

const headers = ['header1', 'header2', 'header3'];
const config = { columns: headers, };

let headers = unparse([], config); // should be 'header1,header2,header3'

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