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

handle columns definition in a better way than inspecting the keys of the first object #2

Open
todo bot opened this issue Oct 31, 2017 · 0 comments
Assignees
Labels

Comments

@todo
Copy link

todo bot commented Oct 31, 2017

an expensive way would be to reduce all objects' keys to a hashmap and use it for the columns (is there another way to do that ?)


* @todo handle columns definition in a better way than inspecting the keys of the first object
* @body an expensive way would be to reduce all objects' keys to a hashmap and use it for the columns (is there another way to do that ?)
*/
const columns = Object.keys(data[0]).map(key => ({
Header: key,
accessor: key


This issue was generated by todo based on a @todo comment in f80ede2. It's been assigned to @robindemourat because they committed the code.
@todo todo bot added the todo label Oct 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant