Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upNull worksheet when creating an empty worksheet with header using json_to_sheet #2077
Labels
Comments
That said, https://github.com/SheetJS/sheetjs/blob/master/bits/90_utils.js#L182 is the offending line and can be removed -- there was no intention to change the behavior in this case |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since version 0.16.5, th following code returns a null worksheet:
XLSX.utils.json_to_sheet([], {header: columns})
Is it now working as it is wanted? If so, how could we create an empty worksheet? In my case it is expected that sometimes the data is an empty array. And an empty worksheet only with headers is expected.