list-to-tree icon indicating copy to clipboard operation
list-to-tree copied to clipboard

Convert list to tree

Results 12 list-to-tree issues
Sort by recently updated
recently updated
newest added

List to Tree doesn't work when key_id and key_parent is string.

```js var list = [ { id: 1, // parent: 0 // this is not necessary any more }, { id: 2, parent: 1 }] // ... ```

Is there a way of removing duplicate children?

Hi, This library works well with my list except that it rearrange some records with negative IDs and puts them at the beginning instead of their normal location. Is there...

https://github.com/DenQ/list-to-tree/blob/06f51966783687eff82645b96de136a6a8bd2853/dist/list-to-tree.js#L39 I have a need to generate a tree from a collection (array of objects). But my paths are nested - eg: ``` { id: 100, field: 'val', // ......

I am facing some issues while parsing the tree; where in the big tree it does not parse the node appropriately. but When I test with only that specific sub...

wait implement

wait implement

Sometime, we need an `order_key` to sort the tree. Could we add this feature?