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

feature request: support pick item props #48

Open
atian25 opened this issue Nov 1, 2022 · 1 comment · May be fixed by #49
Open

feature request: support pick item props #48

atian25 opened this issue Nov 1, 2022 · 1 comment · May be fixed by #49

Comments

@atian25
Copy link

atian25 commented Nov 1, 2022

const tree = arrayToTree(arr, {
  transform: ['id',  'key1'],
  // transform: item => { return { id: item.id, key1: item.key1 } },
});
@gburning
Copy link

I would appreciate something like this as well. I don't need parentId once my collection is already hierarchical tree for example. It would be nice to be able to strip it from the results.

@atian25 atian25 linked a pull request Nov 27, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants