Skip to content

zero numbers are written as empty cell #12

@uhucrew

Description

@uhucrew

Numbers with zero value become an empty cell in the export. The Problem is here, 0 || "" evaluates to an empty string, not the number zero:
src/index.coffee:56
@_addCell(obj[key] || "", col + 1)

Possibly this is a fix? (I'm not familiar with coffescript):
@_addCell(obj[key] === 0 ? 0 : obj[key] || "", col + 1)

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