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

Support duplicate columns #313

Open
mendeljacks opened this issue Aug 20, 2023 · 0 comments
Open

Support duplicate columns #313

mendeljacks opened this issue Aug 20, 2023 · 0 comments

Comments

@mendeljacks
Copy link

mendeljacks commented Aug 20, 2023

it would be great to have support for array of array so that we can have two columns in a sheet with the same name
let table = [ ['Name', 'Age', 'Name'], // <-- Notice we have "Name" twice (duplicate columns) ['Alice', 25, 'DuplicateColumnData'], ['Bob', 30, 'AnotherDuplicateColumnData'] ];

Whereas this will not work
let table = [
{ Name: 'Alice', Age: 25, Name: 'DuplicateColumnData' }, // <-- This is not valid JavaScript!
{ Name: 'Bob', Age: 30, Name: 'AnotherDuplicateColumnData' } // <-- This too is not valid JavaScript!
];

The use case for this is that a sheet has two heading rows and the column names are only unique within one group

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